-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 in slugable records #114
Comments
Sorry, what's the issue you're facing? |
i changed model route key name using getRouteKeyName (https://laravel.com/docs/8.x/routing#customizing-the-default-key-name) the model urls is generating correctly but edit page returns 404. I'am fixed this in local using code in my first comment. |
Thanks! Will get a fix pushed out. |
Merged
Fixed by #167. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
a basic solution
static::getModel()::where(self::getRouteKeyName(), $record)->firstOrFail();
https://github.com/laravel-filament/filament/blob/9414a1aa80ae20b07e29707916c9d408efbe50e9/src/Resources/Pages/EditRecord.php#L58
The text was updated successfully, but these errors were encountered: