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.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2FBoiJX
via IFTTT
Aucun commentaire:
Enregistrer un commentaire