therezor / laravel-database-schedule
Add laravel task to your schedule strait from database.
Installs: 5 984
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 3
Forks: 4
Open Issues: 3
Requires
- php: >=7.0
- illuminate/console: ^5.6|^5.7|^5.8|^6.0|^7.0|^8.0
- illuminate/database: ^5.6|^5.7|^5.8|^6.0|^7.0|^8.0
- illuminate/support: ^5.6|^5.7|^5.8|^6.0|^7.0|^8.0
README
Store your schedules in database (cache friendly)
Installation
-
Run
composer require therezor/laravel-database-schedule
in your laravel project root folder -
Run
php artisan vendor:publish --provider="TheRezor\DatabaseSchedule\ServiceProvider"
-
Apply migration
php artisan migrate
-
Use
TheRezor\DatabaseSchedule\Models\Schedule
to manage your database schedule
<?php $schedule = new Schedule(); $schedule->dailyAt('18:00'); $schedule->command = MyComand::class; $schedule->params = ['id' => 1]; $schedule->save(); } ?>