yassineqoraiche
8 months ago
152
5
Laravel

Use custom Exception Handler in laravel package

Posted 8 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.