>|class-string<\Throwable> $exceptions * @return \Illuminate\Support\Testing\Fakes\ExceptionHandlerFake */ public static function fake(array|string $exceptions = []) { $exceptionHandler = static::isFake() ? static::getFacadeRoot()->handler() : static::getFacadeRoot(); return tap(new ExceptionHandlerFake($exceptionHandler, Arr::wrap($exceptions)), function ($fake) { static::swap($fake); }); } /** * Get the registered name of the component. * * @return string */ protected static function getFacadeAccessor() { return ExceptionHandler::class; } }