I am Unable to handle NotFoundHttpException in Laravel
I have already tried to handle it through render() in Handler.php
// Handler.php
// render()
==============
public function render($request, Exception $e)
{
if($e instanceof NotFoundHttpException){
return response('Not Found');
}
return parent::render($request,$e);
}
It should return the response 'Not Found'. But it is returning
Class 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' not found
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Z8Uqia
via IFTTT
Aucun commentaire:
Enregistrer un commentaire