diff --git a/config/filament-database-schedule.php b/config/filament-database-schedule.php index 7b9d13d..0380a5a 100644 --- a/config/filament-database-schedule.php +++ b/config/filament-database-schedule.php @@ -3,6 +3,7 @@ // config for HusamTariq/FilamentDatabaseSchedule use HusamTariq\FilamentDatabaseSchedule\Models\Schedule; +use HusamTariq\FilamentDatabaseSchedule\Filament\Resources\ScheduleResource; use Illuminate\Support\Str; return [ @@ -17,7 +18,10 @@ 'timezone' => env('FILAMENT_SCHEDULE_TIMEZONE', config('app.timezone')), - + 'resources' => + [ + ScheduleResource::class, + ], /** * Cache settings diff --git a/src/FilamentDatabaseSchedulePlugin.php b/src/FilamentDatabaseSchedulePlugin.php index 96ccfd3..5ad6d9a 100644 --- a/src/FilamentDatabaseSchedulePlugin.php +++ b/src/FilamentDatabaseSchedulePlugin.php @@ -4,7 +4,6 @@ use Filament\Contracts\Plugin; use Filament\Panel; -use HusamTariq\FilamentDatabaseSchedule\Filament\Resources\ScheduleResource; class FilamentDatabaseSchedulePlugin implements Plugin { @@ -25,9 +24,7 @@ public function getId(): string public function register(Panel $panel): void { $panel - ->resources([ - ScheduleResource::class, - ]) + ->resources(config('filament-database-schedule.resources')) ; }