Skip to content
This repository was archived by the owner on Oct 15, 2023. It is now read-only.

Commit 6018ba0

Browse files
some fix
1 parent df3a073 commit 6018ba0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/Exceptions/Handler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function render($request, Exception $exception)
5454
}
5555

5656
if ($exception instanceof \Spatie\Permission\Exceptions\UnauthorizedException) {
57-
abort(403, "Permission Denied.");
57+
abort(403, 'Access Denied.');
5858
}
5959

6060
return parent::render($request, $exception);

app/Http/Middleware/RedirectIfAuthenticated.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function handle($request, Closure $next, $guard = null)
2020
switch ($guard) {
2121
case 'admin':
2222
if (Auth::guard($guard)->check()) {
23-
return redirect('/admin');
23+
return redirect()->route('admin.index');
2424
}
2525
break;
2626
default:

0 commit comments

Comments
 (0)