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

[Bug]: Resource pages don't use the resource set in the config file #4

Open
willcastillo opened this issue Sep 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@willcastillo
Copy link

What happened?

I can't properly override the resource because the Create, Edit, and List WebhookCall pages are pointing to the base WebhookCall resource class instead of the one set in the config file.

How to reproduce the bug

  • Create a resource that overrides Tapp\FilamentWebhookClient\Resources\WebhookCallResource
  • Register the new resource in config/filament-webhook-client.php replacing the base one.

At this point you'd expect the child pages to use the newly defined resource but that's not the case.

  • Change the model's name in your new resource and you'd expect this change to be taken by the child pages. That's not the case.

Package Version

Latest

PHP Version

8.2

Laravel Version

11

Which operating systems does with happen with?

No response

Notes

No response

@willcastillo willcastillo added the bug Something isn't working label Sep 28, 2024
@andreia
Copy link
Contributor

andreia commented Sep 28, 2024

@willcastillo Thank you for reporting!
Just added a PR addressing it, please let me know if it works for you :) #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants