From 3e6195410c43ff3fbcd67b81fc08ffcef42500ff Mon Sep 17 00:00:00 2001 From: ilhamwara Date: Fri, 13 Jun 2025 09:03:06 +0700 Subject: [PATCH] update --- app/Http/Middleware/Session.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Http/Middleware/Session.php b/app/Http/Middleware/Session.php index 505eb7a..2d70535 100644 --- a/app/Http/Middleware/Session.php +++ b/app/Http/Middleware/Session.php @@ -16,12 +16,12 @@ class Session */ public function handle(Request $request, Closure $next): Response { - // if(!Auth::check()){ - // return redirect('/login')->with([ - // 'message' => 'Maaf anda harus login terlebih dahulu', - // 'type' => "error" - // ]); - // } + if(!Auth::check()){ + return redirect('/login')->with([ + 'message' => 'Maaf anda harus login terlebih dahulu', + 'type' => "error" + ]); + } return $next($request); } }