1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 10:14:04 +00:00

throw correct exception when $originalOnFail() is null

This commit is contained in:
Abrar Ahmad 2022-07-22 18:35:37 +05:00
parent 8fb3eb0abd
commit 17fecf29a1
2 changed files with 17 additions and 1 deletions

View file

@ -30,7 +30,11 @@ class UniversalRoutes implements Feature
return $next($request);
}
return $originalOnFail($exception, $request, $next);
if ($originalOnFail) {
return $originalOnFail($exception, $request, $next);
}
throw $exception;
};
}
}