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