Link to home
Start Free TrialLog in
Avatar of rivkamak
rivkamakFlag for United States of America

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.
 if ($e instanceof \ErrorException) {
        return response()->view('errors.500', [], 500);
    } else {
        return parent::render($request, $e);
    }

Open in new window

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

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial