title: Set Up CronJob In CPanel Laravel
body: <p>i set up a cronjob in cpanel, i'm using laravel 4.2. i also set to send the cronjob to my email and below yellow part is the error i received in email.</p>
  
  <blockquote>
    <p>[InvalidArgumentException]</p>
    
    <p>There are no commands defined in the "user" namespace.</p>
  </blockquote>
  
  <p>//laravel command.php</p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Console\Command;
  use Symfony\Component\Console\Input\InputOption;
  use Symfony\Component\Console\Input\InputArgument;
  
  class CronDelFilesCommand extends Command {
  
  /**
   * The console command name.
   *
   * @var string
   */
  protected $name = 'user:active';
  
  /**
   * The console command description.
   *
   * @var string
   */
  protected $description = 'Command description.';
  
  /**
   * Create a new command instance.
   *
   * @return void
   */
  public function __construct()
  {
      parent::__construct();
  }
  
  /**
   * Execute the console command.
   *
   * @return mixed
   */
  public function fire()
  {
      echo "aaa";
  }
  
  /**
   * Get the console command arguments.
   *
   * @return array
   */
  protected function getArguments()
  {
      return array(
  
      );
  }
  
  /**
   * Get the console command options.
   *
   * @return array
   */
  protected function getOptions()
  {
      return array(
          array('example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null),
      );
  }
  
  }
  </code></pre>
  
  <p>//command in cpanel</p>
  
  <pre><code>* * * * * /usr/bin/php /home/project/public_html/artisan user:active &gt; /home/project/public_html/log.txt
  </code></pre>
  
  <p>what's wrong? what's the error mean?</p>
  
  <p><strong>UPDATED</strong></p>
  
  <p>thanks to @KristianHareland i use wget. :)</p>