spatie/flare-client-php

How can I display a custom error page?

Closed this issue · 1 comments

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

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.