title: Laravel Task Scheduler Crontab
body: <p>I can't get my cron working on my local server using Valet. Here's what I've got/done.</p>
  
  <ol>
  <li>When I run <code>php artisan command:mycommand</code> the command runs.</li>
  <li>When I run <code>php artisan schedule:run</code> the command runs. </li>
  </ol>
  
  <blockquote>
    <p>Output: </p>
  </blockquote>
  
  <pre><code>Running scheduled command: '/usr/local/Cellar/php70/7.0.13_6/bin/php' 'artisan' game:resources &gt; '/dev/null' 2&gt;&amp;1 &amp;
  </code></pre>
  
  <p>According to the Laravel docs it says to add this to my crontab.</p>
  
  <pre><code>* * * * * php /path/to/artisan schedule:run &gt;&gt; /dev/null 2&gt;&amp;1
  </code></pre>
  
  <p>When in my project directory, here is the pwd.</p>
  
  <p><code>/Users/tjhillard/Projects/galaxywars</code></p>
  
  <p>When I try <code>crontab -e</code> in my laravel project root and save this:</p>
  
  <pre><code>* * * * * php /Users/myusername/Projects/projectname schedule:run &gt;&gt; /dev/null 2&gt;&amp;1
  </code></pre>
  
  <p>... it doesn't work. I've tried several variations of this cron command with no luck. Any idea what I'm doing wrong?</p>
  
  <p>I'm on macOS using Valet.</p>