Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5 Schedular vs Indatus Dispatcher

I have been looking at Indatus Dispatcher (https://github.com/Indatus/dispatcher) and it looks far more flexible than the built in Scheduler in Laravel 5.

For instance with Dispatcher I can:

...->daysOfTheMonth([1, 15])

To have a command execute on the 1st and 15th of every month.

From what I can see, you can't do that with Scheduler:

...->monthly(1, 15)

Which wouldn't work because that function doesn't accept any parameters.

Am I missing something or is Dispatcher much better?

like image 492
imperium2335 Avatar asked Apr 08 '15 15:04

imperium2335


1 Answers

The Indatus Dispatcher is not compatible with Laravel 5. It has been discontinued, since the majority of the functionality is included in Laravel 5 by default now.

You can always run a custom cron time - so you can really do any scheduling with Laravel 5 you like:

...->cron('0 0 1,15 * * *')
like image 141
Laurence Avatar answered Sep 20 '22 22:09

Laurence