Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel queue work on shared hosting

// Set a schedule
$schedule->command('queue:work --stop-when-empty')->everyMinute()->withoutOverlapping();
// cron job
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
 
PREVIOUS NEXT
Tagged: #laravel #queue #work #shared #hosting
ADD COMMENT
Topic
Name
9+7 =