Support the ongoing development of Laravel.io →
Database Eloquent Views
Last updated 2 years ago.
0

I am getting below error :-

Illuminate \ Database \ Eloquent \ ModelNotFoundException 
No query results for model [Page].
Last updated 2 years ago.
0
catch (Illuminate\Database\Eloquent\ModelNotFoundException $e)
Last updated 2 years ago.
0

Got it working usin this :-

catch(Illuminate\Database\Eloquent\ModelNotFoundException  $e)

I forgot to call below line at top

use Illuminate\Database\Eloquent\ModelNotFoundException;

Thanks

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

DevHack devhack Joined 19 Nov 2014

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.