Skip to content
Advertisement

Laravel Schedule 5.4 names like `everyMinute()` not working

I am using Laravel 5.4

When I use everyMinute() it always return an error

JavaScript

when I convert it to cron('* * * * *') then it is working.


Error:

JavaScript

Working:

JavaScript

Advertisement

Answer

I managed to solve it via composer update. I think there’s a package that rely on Laravel 5.5 or higher. Because 5.5 only require ->cron('* * * * *') and Laravel 5.4 accepts ->cron('* * * * * *')

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement