Edit Page URL customization
I want to customize the url in the edit page of a resource to use slug in place id. I don't want to change in the model. I am using :
But this does not seem to work. Thanks in advance for any help.
4 Replies
Hello, any solution to this?
Try this in the resource maybe?
but
{record:slug}
should have worked 🤔also the actions need to be updated for this to work
Actually we need both to work with urls other than id
The easiest way would be to change the
getRouteKeyName
method on the model
but the OP said he doesn't want to change the model (and this would change it pretty much everywhere)