diff --git a/src/app/Http/Controllers/AdminController.php b/src/app/Http/Controllers/AdminController.php index 6e9032b..18f1380 100644 --- a/src/app/Http/Controllers/AdminController.php +++ b/src/app/Http/Controllers/AdminController.php @@ -16,7 +16,7 @@ public function index() $userData = auth()->user(); if (!$userData) { - Inertia::location('/'); + return redirect('/'); } // Get the Statistics