Laravel Scheduler - cPanel Cron Job

Submitted by haruncpi - 3 months ago

Laravel scheduler is a nice feature of the Laravel framework but most of the developer can't setup cronjob for running the laravel schedule on shared hosting. Here I am giving a snippet for running laravel cronjob on shared hosting. For more detail: http://bit.ly/laravel-scheduler

/**
Make a laravel schedule in normal process and create cronjob like this format

Format:
**/
/usr/local/bin/php /home/hosting_user/public_html/artisan schedule:run >> /dev/null 2>&1

//example:
/usr/local/bin/php /home/harun/public_html/artisan schedule:run >> /dev/null 2>&1

// more details: http://bit.ly/laravel-scheduler