Use custom Exception Handler in laravel package

Posted 5 months ago by yassineqoraiche

Hi, is there any way to add an exception handler to my Laravel package:

public function report(Exception $exception)
{
    if ($exception instanceof CustomException) {
        //
    }

    parent::report($exception);
}

Please sign in or create an account to participate in this conversation.