Custom Error 500 page not displaying using Event::override - Laravel
问题 I am able to use the Event::Override function successfully with the 404 event but not the 500 event. I simply wish the event to redirect to the front page with a flash message, as I am able to do fine with 404 events. Is there something else I need to do to get the 500 events also redirecting to my front page? see code below in routes.php file: Event::listen('404', function() { return Response::error('404'); }); Event::listen('500', function() { return Response::error('500'); }); Event: