mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
584 B
584 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| You can use the `missing` method to customize 404 handling on a route | 1512463798287814658 | weekly-thread-2022-14 | cosmeescobedo |
|
2022-04-08T16:14:04+00:00 | you-can-use-the-missing-method-to-customize-404-handling-on-a-route |
🔥 Laravel tip: Customizing Missing Model Behavior in route model bindings
By default, Laravel throws a 404 error when it can't bind the model, but you can change that behavior by passing a closure to the missing method.