Laravel Scheduler - cPanel Cron Job

Submitted by haruncpi - 5 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:

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

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

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

// more details: