I need redirect user to the homepage with a flash message when some exception are throw but I can't access message flashed from Exception handler. This is my code :
if(config('app.env') == 'production')
{
if($exception instanceof FatalErrorException ||
$exception instanceof FatalThrowableError
){
return redirect(route('home'))->with('message',
[
'type' => 'info',
'content' => 'Nous nous excusons pour cette gène !
Notre équipe technique est informée du problème et passera
à la correction dans le plus brefs délais que possible
'
]);
}
}
return parent::render($request, $exception);
}
What is the problem ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire