You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to override the route key name from a model inside a resource.
Expected behavior
I would like to override the default route key name, provided by getRouteKeyName function in a model.
I have an application where the default route key name is a column named meta_id. It works well and because I have a lot of routes, it's a good default. I have two routes that overrides this using
Package
filament/filament
Package Version
3.0
Laravel Version
11.0
Livewire Version
/
PHP Version
8.3
Problem description
Unable to override the route key name from a model inside a resource.
Expected behavior
I would like to override the default route key name, provided by
getRouteKeyName
function in a model.I have an application where the default route key name is a column named
meta_id
. It works well and because I have a lot of routes, it's a good default. I have two routes that overrides this usingAs you can see, I use the syntax
model:column
to change the behavior.With filament, I expected to be able to reproduce this with this:
With the same syntax. This does not works (this change the way the URL is built but not how the model is resolved).
Is there a way to make it works?
Steps to reproduce
See the reproduction: Barbapapazes/demo@3461be2
Reproduction repository (issue will be closed if this is not valid)
Barbapapazes/demo@3461be2
Relevant log output
No response
The text was updated successfully, but these errors were encountered: