I have a function that runs perfectly calling
php artisan export:purchased_services
If I use it from Scheduler does not work
protected function schedule(Schedule $schedule){
$schedule->command(ExportPurchasedServices::class)->everyMinute();
}
I've simply put some Log::info('test') inside the _construct() ad handle() of the command, and I've noticed that the one inside handle() is not executed.
Tested while running
php artisan schedule:run
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire