1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
laravel-tips/content/tips/you-can-use-the-missing-method-to-customize-404-handling-on-a-route.md
Samuel Štancl a2adc750ad Week 14
2022-04-09 02:35:20 +02:00

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
https://pbs.twimg.com/media/FPi0WYWUYAQXuWf.jpg
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.