🔥 Laravel tip: Customizing Missing Model Behavior in route model bindings
Apr 5, 2022
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.
Other tips:
🔥 Laravel Tip: the discardChanges method.
Nov 29, 2022