This librarian creates a filament resource(default: /schedule) in your filament admin panel where it is possible to manage which schedules will be executed at any given moment, these schedules are recorded in the database and can be changed, activated, inactivated or deleted via your panel without the need for a new application deployment.
You can install the package via composer:
composer require husam-tariq/filament-database-schedule
You should publish and run the migrations with:
php artisan vendor:publish --tag="filament-database-schedule-migrations"php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="filament-database-schedule-config"
You can publish the translations files with:
php artisan vendor:publish --tag="filament-database-schedule-translations"
Run the artisan command to run scheduled tasks
php artisan schedule:run
Using the plugin is easy all you need to do is instanciate it to the Panels you want the plugin to be available in.
use HusamTariq\FilamentDatabaseSchedule\FilamentDatabaseSchedulePlugin;Â Â Â public function panel(Panel $panel): Panel{ return $panel ... ->plugins([ FilamentDatabaseSchedulePlugin::make() ]) ...}
You can set the following environment variables to configure schedules:
file
APP_DEBUG=true
and enabled when APP_DEBUG=false
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.
Husam Al Shaibani Professional Software Programmer with more than 9 years' experience in analyzing user needs and designing software solutions, Skilled in using problem- solving and critical thinking skills to modify and innovate programs for computer, mobile and websites.