I am getting below error :-
Illuminate \ Database \ Eloquent \ ModelNotFoundException
No query results for model [Page].
catch (Illuminate\Database\Eloquent\ModelNotFoundException $e)
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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community