I want to redirect to a page with error message from Handler.php
. It will redirecting successfully but without showing the error messaging in the intended page.
Below is my code in handler.php
file:
public function render($request, Exception $exception)
{
if ($exception instanceof \Illuminate\Http\Exceptions\PostTooLargeException)
return \Redirect::to('administrator/media')->with('errorMessage', 'File size is too big.');
// bla bla bla
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire