diff --git a/app/Http/Controllers/Auth/RegisteredUserController.php b/app/Http/Controllers/Auth/RegisteredUserController.php index db903e8e..08caeef1 100644 --- a/app/Http/Controllers/Auth/RegisteredUserController.php +++ b/app/Http/Controllers/Auth/RegisteredUserController.php @@ -46,6 +46,6 @@ public function store(Request $request): RedirectResponse Auth::login($user); - return to_route('dashboard'); + return redirect()->intended(route('dashboard', absolute: false)); } }