title: Setting up a Laravel cron job in cPanel
body: <p>I have the following function:</p>
  
  <pre><code>protected function schedule(Schedule $schedule)
  {
      $schedule-&gt;command('email:users')-&gt;everyMinute();
  }
  </code></pre>
  
  <p>when I run the command </p>
  
  <pre><code>artisan schedule:run 
  </code></pre>
  
  <p>it sends an email but when I add the following command to the cpanel as a cron job it doesn't send any email. Cpanel suppose to email me a notification when the cron job is run but I haven't receive a single email.</p>
  
  <blockquote>
    <p>php /home/rain/artisan schedule:run 1>> /dev/null 2>&amp;1</p>
  </blockquote>
  
  <p>Where am I doing wrong?</p>
  
  <p>Also when I run the command <code>artisan schedule:run</code> it runs it only once. I am very curious why do I have to add <code>-&gt;everyMinute();</code> if it is not going to run every minute? If I want to send it weekly I can setup the cron job. Why do I have to write to add <code>-&gt;weekly();</code> in the function if cron job is sending it weekly?</p>