Skip to content

Commit

Permalink
Merge pull request #137 from JakyeRU/feature-add-redirect-login
Browse files Browse the repository at this point in the history
Feature add redirect login
  • Loading branch information
JakyeRU authored Aug 6, 2024
2 parents ee639df + 69bd412 commit 1673d02
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/DiscordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', '/'));
}

/**
Expand Down
11 changes: 11 additions & 0 deletions src/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,17 @@

'remember_me' => false,

/*
|--------------------------------------------------------------------------
| Redirect Login
|--------------------------------------------------------------------------
|
| Where to redirect the user after they log in.
|
*/

'redirect_login' => '/',

/*
|--------------------------------------------------------------------------
| Error Messages
Expand Down

0 comments on commit 1673d02

Please sign in to comment.