Support the ongoing development of →
Last updated 3 weeks ago.

There is a difference between report and render. Report is intended do decide if an errror need to be reported to the system (your logging) and render is intended for your output.

The ModelNotFound exception is registered as an internal don't report so it will never be reported, see:

The ModelNotFoundException is indirect already rendered, it is transformed to a NotFoundHttpException, see: You can customize the output with blades, see:

Another option that looks like your code is to use the the renderable function instead of the reportable, see:

I hope this makes it clear for you to see how the exceptions are handled.


Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 - All rights reserved.