rivkamak
asked on
Custom error page in laravel 5
I am trying to set up instead of viewing the 'whoops' page, i want my users to see a custom page.
so I put this on my error page.
Do I need to expect a different error number
so I put this on my error page.
if ($e instanceof \ErrorException) {
return response()->view('errors.500', [], 500);
} else {
return parent::render($request, $e);
}
It works sometimes, but now I just got this error, still with a whoops page.Do I need to expect a different error number
InvalidArgumentException in Carbon.php line 425:
A four digit year could not be found
Data missing
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.