Add button and Delete button cannot display when changing slug
I have a customer table where they can relate each other using
parent->child
and I am creating another resource for this particular relationship with --simple
I name my resource as Link Account.. I don't have Link Account model so I change the $model = Customer::class
variable inside resource, at first it redirect me to my Main Customer resources.. to overcome this I rewrite the slug using https://filamentphp.com/docs/2.x/admin/pages/getting-started#customization like below
protected static ?string $slug = 'link-accounts';
Also I change getEloquentQuery() to get my custom query, but one thing I notice is when I change slug the CreateAction and DeleteAction is not visible anymore.. Only edit is visible and I can edit data
Is this a bug? Do I need to create another Action for adding/delete?
Thanks in advance
Filament Version: v2.17.24
This issue is raised on https://github.com/filamentphp/filament/discussions/6597GitHub
Add button and Delete button cannot display when changing slug · fi...
I have a customer table where they can relate each other using parent->child and I am creating another resource for this particular relationship with --simple I name my resource as Link Account....
Filament
Getting started - Pages - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
3 Replies
hm that is very weird
please create an issue with a minimal reproduction repository
Yes, this is very weird.. Just now I create new project and I cannot find this bug anymore.. Then I update my project from composer but it's still come.. I guess it's because of my modified code maybe.. I'll find another work around.. thank you
start removing code until it works