Answer the question
In order to leave comments, you need to log in
Laravel not running command via scheduler?
There is a TestCommand command which creates record in a DB.
I launch through the console php artisan command:TestCommand
Everything works.
Now I add this command to Scheduler (file Console\Kernel.php)
protected function schedule(Schedule $schedule)
{
$schedule->command('TestCommand')->everyMinute();
}
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