Answer the question
In order to leave comments, you need to log in
How to run laravel task scheduler?
Added a task like this to the app/Console/Kernel.php file:
protected function schedule(Schedule $schedule)
{
$schedule->call(function () {
// some code
})->everyMinute();
}
for the test set every minute. The scheduler started so: php artisan schedule:run >> /dev/null 2>&1
php artisan schedule:run
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question