FilamentF
Filament3y ago
Vp

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/6597
GitHub
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
The elegant TALL stack admin panel for Laravel artisans.
Was this page helpful?