title: Laravel + Cronjob in cpanel not working
body: <p>I am new in laravel and i tried to set task scheduler using cpanel cronjob. But cronjob not working.</p>
  
  <pre><code>php /home/webservername/public_html/demo/projectname/artisan schedule:run 1&gt;&gt; /dev/null 2&gt;&amp;1
  </code></pre>
  
  <p>My kernel code : </p>
  
  <pre><code>protected $commands = [
      Commands\HourlyUpdate::class,
  ];
  
  protected function schedule(Schedule $schedule)
  {
      $schedule-&gt;command('hour:update')
                -&gt;everyMinute();
      $schedule-&gt;call(function () {
                    DB::table('test')-&gt;insert(
                      ['title' =&gt; 'test', 'datetime' =&gt; '2018-07-10 14:38:00']
                      );
                  })-&gt;everyMinute();
  }
  </code></pre>
  
  <p>When i run project in my localhost, try using command prompt its working.</p>
  
  <pre><code>php artisan schedule:run
  </code></pre>