Laravel Exceptions “Trick”: Route Model Binding and Model Not Found

In this video, I will improve an example I found on Twitter: we will replace a Service class with Route Model Binding, and process the exception for various Models.

Original tweet: https://twitter.com/alloyking_1/status/1635401809710972928

– – – – –
Support the channel by checking out my products:
– My Laravel courses: https://laraveldaily.com/courses
– Laravel QuickAdminPanel: https://quickadminpanel.com
– Livewire Kit Components: https://livewirekit.com

– – – – –
Other places to follow:
– My weekly Laravel newsletter: https://us11.campaign-archive.com/home/?u=a459401212599a54203d036ee&id=91c1337873
– My personal Twitter: https://twitter.com/povilaskorop

Source: https://www.youtube.com/watch?v=2Zp-xuENN5o

Leave a Reply

Your email address will not be published. Required fields are marked *