Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

running laravel queues in shared hosting

//In your Kernel.php Add the following

 $schedule->command('queue:work', [
   '--max-time' => 300
        ])->withoutOverlapping();

//Create a cron
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

 
PREVIOUS NEXT
Tagged: #running #laravel #queues #shared #hosting
ADD COMMENT
Topic
Name
9+5 =