diff --git a/app/Http/Middleware/AdminAuthenticate.php b/app/Http/Middleware/AdminAuthenticate.php index f060094..1b248a0 100644 --- a/app/Http/Middleware/AdminAuthenticate.php +++ b/app/Http/Middleware/AdminAuthenticate.php @@ -46,7 +46,7 @@ public function handle(Request $request, Closure $next) if (!$request->user()->isPrivilegedUser()) { flash()->error('You do not have permission to access that area.'); - return redirect()->back(); + return redirect()->route('index'); } return $next($request);