diff --git a/src/Http/Controllers/DiscordController.php b/src/Http/Controllers/DiscordController.php index f3dc846..5a13128 100644 --- a/src/Http/Controllers/DiscordController.php +++ b/src/Http/Controllers/DiscordController.php @@ -126,7 +126,7 @@ public function handle(StoreUserRequest $request): RedirectResponse | JsonRespon } // Redirecting the user to the intended page or to the home page. - return redirect()->intended(); + return redirect()->intended(config('larascord.redirect_login', '/')); } /** diff --git a/src/config/config.php b/src/config/config.php index 2d154c0..cca1f13 100644 --- a/src/config/config.php +++ b/src/config/config.php @@ -155,6 +155,17 @@ 'remember_me' => false, + /* + |-------------------------------------------------------------------------- + | Redirect Login + |-------------------------------------------------------------------------- + | + | Where to redirect the user after they log in. + | + */ + + 'redirect_login' => '/', + /* |-------------------------------------------------------------------------- | Error Messages