title: How to set env with laravel artisan to have two different database connections (local/remote)?
body: <p>I looking for setup a multi-environment project using Laravel3 but I dont understand the command to set the environment.</p>
  
  <p>I see here: <a href="http://laravel.com/docs/artisan/commands" rel="noreferrer">http://laravel.com/docs/artisan/commands</a>
  The command is:</p>
  
  <pre><code>php artisan foo --env=local
  </code></pre>
  
  <p>I already used artisan and bob with success, what I can't undertand the <strong>foo</strong>, I try to change to my project name but always the same output: "Sorry, I can't find that task."</p>
  
  <p>If I try:    php artisan --env=local</p>
  
  <p>That will return: "You forgot to provide the task name."</p>
  
  <p>Anybody can help? Thanks for your time.</p>
  
  <p><strong>[edit]</strong> With the answers now I can understand better and improve my question:</p>
  
  <p>I have a project with those folders created: <a href="http://d.pr/i/5nZS" rel="noreferrer">http://d.pr/i/5nZS</a>
  With that in mind, I need to set my local env as development and production as production. So, I can do that with any variation of the command "php artisan --env=local" or I need to add on my public/.htaccess "SetEnv LARAVEL_ENV development"?</p>
  
  <p>Thanks again.</p>