Answer the question
In order to leave comments, you need to log in
How to set up Laravel task scheduler?
Hello, the question is the following. I need to make a Cron task, for this I wrote my own command, tested everything works. Next I created a task in app/Console/Kernel.php :
protected function schedule(Schedule $schedule)
{
Log:info("Запуск!");
$schedule->command('tlgrm:start')->everyMinute();
$schedule->call(function () {
Log:info("Работает!");
})->cron('* * * * * *');
}
Answer the question
In order to leave comments, you need to log in
Is there a task to launch in cron or what?
https://laravel.com/docs/5.6/scheduling#introduction
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question