Support the ongoing development of Laravel.io →
Configuration

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); }

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

Last updated 2 years ago.
0

you are trying to initialize a Carbon instance with wrong data.. check the full exception trace to find where.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

debs2830 debs2830 Joined 12 Apr 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.