How can I display a custom error page?
jameswilson34 opened this issue · 1 comments
jameswilson34 commented
This is for a PHP but non-Laravel website I maintain. I've been able to register errors in Flare but I can't seem to get a custom error page displaying. The code below now displays the error page bit has stopped errors displaying in Flare.
Presumably set_exception_handler('myExceptionHandler');
overrides Flare?
$flare = Flare::make('meyuS2i1HKx4G98aSnpcTGgzrGo1NymA')
->registerFlareHandlers()
->registerErrorHandler()
->registerExceptionHandler();
function myExceptionHandler($exception) {
require 'error-page.php';
}
set_exception_handler('myExceptionHandler');
spatie-bot commented
Dear contributor,
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.