title: In Laravel 4 how to call Artisan command through web interface?
body: <p>In <a href="https://github.com/illuminate" rel="nofollow">Laravel 4</a> how to call Artisan commands through web interface?</p>
  
  <p>I have tried the following</p>
  
  <pre><code>$command = "controller:make";
  $parameters = array('name' =&gt; 'FooController');
  Artisan::call($command,$parameters);
  </code></pre>
  
  <p>however I am getting this error message</p>
  
  <pre><code> InvalidArgumentException: There are no commands defined in the "controller" namespace.
  </code></pre>
  
  <p>any idea?</p>