From 67a03742d4cf97789dca5ced6d2aaaa008403307 Mon Sep 17 00:00:00 2001 From: Hussam Tariq Date: Mon, 28 Aug 2023 17:39:59 +0300 Subject: [PATCH] update README.md --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 77b1ca2..7455618 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,25 @@ Run the artisan command to run scheduled tasks php artisan schedule:run ``` +### Plugin Usage +Using the plugin is easy all you need to do is instanciate it to the Panels you want the plugin to be available in. + +```php +use HusamTariq\FilamentDatabaseSchedule\FilamentDatabaseSchedulePlugin; + + + +public function panel(Panel $panel): Panel +{ + return $panel + ... + ->plugins([ + FilamentDatabaseSchedulePlugin::make() + ]) + ... +} +``` + ### Environment variables You can set the following environment variables to configure schedules: