dynamic index route
how to make the index route that accessed like
dashboard/action/{record}
on the TransactionResource class i set the pages like this
it getting error like this when i access /dashboard/action/test
it work when i set 2 route like
but i dont want to add the / route
how to fix that?Solution:Jump to solution
i think something like this is work for me
```php
public function getBreadcrumbs(): array
{
return [...
9 Replies
The error probably comes when the navigation items are registered, since Filament doesn't expect a new param You can overwrite the navigation items via
getNavigationItems()
method.I have declared the getNavigationItems method like this
I think you also need to overwrite the
getBreadcrumbs()
one.do you have documentation for that?
i have override the getBreadcrumbs method like this
it's getting error like this
No, you need to check the source code.
Is this the complete error? Seems like there is some part missing.
Redeclare usually means, you didn't specify the method the same as before.
where should i override the getBreadcrumbs?
on resource class or on page class?
yeah that all the error
Solution
i think something like this is work for me
i override the getBreadcrumbs method from the ListTransactions class
this is correct?
If it works for you and you don't get an error, it seems correct 😉
i think it should be fine 🙂 , thanks for the help