Search
 
SCRIPT & CODE EXAMPLE
 

PHP

test laravel scheduler

Set the cron to run after every minute:
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
  
Then inisde you kernel.php
//For every minute
$schedule->call(function () {
	Log::info('I ran after every 1 minute');
})->everyMinute();
//For every five minute
$schedule->call(function () {
	Log::info('I ran after every 5 minute');
})->everyFiveMinutes();
Comment

PREVIOUS NEXT
Code Example
Php :: laravel softdelete migration 
Php :: add array to array php 
Php :: get type of object in php 
Php :: laravel create resource controller 
Php :: how to write javascript inside php 
Php :: php timestamp to seconds 
Php :: Update Query in Codeigniter Using Multiple Where Condition 
Php :: laravel without global scope 
Php :: laravel migration update table column type 
Php :: check if array contains only unique values php 
Php :: php mongodb 
Php :: laravel without global scopes 
Php :: php migrate comand 
Php :: php faker long text 
Php :: get_the_category() 
Php :: php new object 
Php :: image upload in laravel 
Php :: laravel check if item is in collection 
Php :: laravel Service Unavailable 
Php :: Make a Woo required field not required 
Php :: upgrade php7 to php 8 xampp 
Php :: php strftime datetime 
Php :: loop foreach laravel with number 
Php :: assign $variable of key value pair array to multiple variables php 
Php :: adminlte in laravel 8 
Php :: php microtime to ms 
Php :: symnfony bearer token 
Php :: php call class method dynamically 
Php :: php get embed code from youtube url 
Php :: wp reserved image size name 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =