Laravel Run Schedule/Command Every Few Seconds

There are times you need shorter intervals to run your artisan commands.

This package does it for you -


The great thing about this package is that it works for both laravel and lumen.


$ composer require spatie/laravel-short-schedule


$ php artisan short-schedule:run


// in app\Console\Kernel.php

protected function shortSchedule(\Spatie\ShortSchedule\ShortSchedule $shortSchedule) { // this artisan command will run every second $shortSchedule->command('artisan-command')->everySecond(); }
Categories: PHP

No comments

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.