F
Filament2y 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
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
Dan Harrin
Dan Harrin2y ago
hm that is very weird please create an issue with a minimal reproduction repository
Vp
VpOP2y ago
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
Dan Harrin
Dan Harrin2y ago
start removing code until it works
Want results from more Discord servers?
Add your server