You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can customize where a user is redirected to on login with the `loginRedirect()` method of the `app/Config/Auth.php` config file. This is handy if you want to redirect based on user group or other criteria.
34
+
You can customize where a user is redirected to on login with the `loginRedirect()` method of the **app/Config/Auth.php** config file. This is handy if you want to redirect based on user group or other criteria.
35
35
36
36
```php
37
37
public function loginRedirect(): string
@@ -46,7 +46,7 @@ public function loginRedirect(): string
46
46
47
47
Oftentimes, you will want to have different redirects for different user groups. A simple example
48
48
might be that you want admins redirected to `/admin` while all other groups redirect to `/`.
49
-
The `app/Config/Auth.php` config file also includes methods that you can add additional logic to in order to
49
+
The **app/Config/Auth.php** config file also includes methods that you can add additional logic to in order to
50
50
achieve this:
51
51
52
52
```php
@@ -64,7 +64,7 @@ public function loginRedirect(): string
64
64
65
65
### Customize Register Redirect
66
66
67
-
You can customize where a user is redirected to after registration in the `registerRedirect()` method of the `app/Config/Auth.php` config file.
67
+
You can customize where a user is redirected to after registration in the `registerRedirect()` method of the **app/Config/Auth.php** config file.
68
68
69
69
```php
70
70
public function registerRedirect(): string
@@ -77,7 +77,7 @@ public function registerRedirect(): string
77
77
78
78
### Customize Logout Redirect
79
79
80
-
The logout redirect can also be overridden by the `logoutRedirect()` method of the `app/Config/Auth.php` config file. This will not be used as often as login and register, but you might find the need. For example, if you programatically logged a user out you might want to take them to a page that specifies why they were logged out. Otherwise, you might take them to the home page or even the login page.
80
+
The logout redirect can also be overridden by the `logoutRedirect()` method of the **app/Config/Auth.php** config file. This will not be used as often as login and register, but you might find the need. For example, if you programatically logged a user out you might want to take them to a page that specifies why they were logged out. Otherwise, you might take them to the home page or even the login page.
0 commit comments