Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Allow Resource to be defined in config #22

Closed
eelco2k opened this issue Jan 18, 2024 · 2 comments
Closed

Feature Request: Allow Resource to be defined in config #22

eelco2k opened this issue Jan 18, 2024 · 2 comments

Comments

@eelco2k
Copy link

eelco2k commented Jan 18, 2024

It would be nice when registering the resource would be done via a config in FilamentDatabaseSchedulePlugin.php
Then the possibility can be created to override the resource for modification.

filament-database-schedule.php

return [

    'resources' => [
        'ScheduleResource' => \HusamTariq\FilamentDatabaseSchedule\Filament\Resources\ScheduleResource::class,
    ],

FilamentDatabaseSchedulePlugin.php

public function register(Panel $panel): void
    {
        $panel
            ->resources(
                config('filament-database-schedule.resources')
            );
    }
@eelco2k
Copy link
Author

eelco2k commented Jan 26, 2024

i've created a pull request for this:

#24

@eelco2k
Copy link
Author

eelco2k commented Feb 4, 2024

PR is merged

@eelco2k eelco2k closed this as completed Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant