I am looking for 404 page for particular controller.Right now if id not found then it loads 404 page from App\Exceptions\Handler
.But now problem is i need to show different 404 page for particular controller .Is There a way to override 404 exception in particular controller
if($request->segment(3)==null){
return view('errors.newerror');
} else {
return view('dataview');
}
I tried above code but its showing handler 404 page
Updated
if($request->segment(3)==null)
{
return abort(sat_error);
}else{
echo '<img alt="" src="'.$url.'">';
}
I have tried above method but still its loading default 404
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire