Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel cron job on shared hosting

/**
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
Comment

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

Comment

how to setup cron job for laravel queues on shared hosting

$schedule->command('queue:restart')
    ->everyFiveMinutes();

$schedule->command('queue:work --daemon')
    ->everyMinute()
    ->withoutOverlapping();
Comment

PREVIOUS NEXT
Code Example
Php :: inplode php 
Php :: laravel middleware 
Php :: laravel debugbar false 
Php :: bootstrap is not defined in laravel 
Php :: laravel-enum 
Php :: laravel eloquent update multiple records 
Php :: sort by number of views descending laravel 
Php :: php dirname 
Php :: get_the_terms 
Php :: composer install phpWord 
Php :: php date() 
Php :: how to know if file is empty in php 
Php :: laravel log package, laravel log, save laravel log 
Php :: php array current 
Php :: php configuration in apache server 2.4 
Php :: php check if day in month 
Php :: the post function wordpress 
Php :: search query codeigniter 
Php :: convert html to pdf using php.php 
Php :: how change resource route parameters lravel 
Php :: laravel save file or picture directory 
Php :: add contact form 7 to page templat e 
Php :: laravel migration text length 
Php :: PHP strtok — Tokenize string 
Php :: simple php round Passing parameters with mode 
Php :: sqlsrv select 
Php :: php extend class 
Php :: multiple primary key defined laravel 
Php :: php concat variable and string 
Php :: action php self 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =