Just getting started with Laravel scheduling. I expect to see the log in the same terminal window where I php artisan serve
but I see nothing.
Is this the correct way to schedule, say every min:
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')
// ->hourly();
$schedule->call(function() {
error_log('____Logging every minute ______'); // This is not logging
})->cron('* * * * *');
}
bear with me, I've just started leaving cron.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire