title: Laravel 4 - Creating an artisan command
body: <p>This is my first attempt to create an artisan command, which should be responsible for executing another php function. All I did so far is to create the command with: <code>php artisan command:make PutItemsBackInStock</code> and created the skeleton for the command. Also, I added the command in <code>app/start/artisan.php</code> so Laravel knows about it. </p>
  
  <p>Then in <code>PutItemsBackInStock</code> file I declared a private function: </p>
  
  <pre><code>private function updateItemQty() { ... }
  </code></pre>
  
  <p>And under the <code>public function fire()</code> I tried to call it: </p>
  
  <pre><code>$this-&gt;updateItemQty();
  </code></pre>
  
  <p>This is probably not the right way to do it, while I got that error:  </p>
  
  <blockquote>
    <p>[RuntimeException]   Not enough arguments.</p>
  </blockquote>
  
  <p>Then I removed the blocks for the protected functions <code>getArguments() and getOptions()</code> which removed that error but still the function is not firing. </p>
  
  <p>The question is: <em>How can I get an artisan command to execute another function?</em> </p>