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
Copy file name to clipboardExpand all lines: authentication.md
+17-1
Original file line number
Diff line number
Diff line change
@@ -189,7 +189,7 @@ Route::get('/flights', function () {
189
189
<aname="redirecting-unauthenticated-users"></a>
190
190
#### Redirecting Unauthenticated Users
191
191
192
-
When the `auth` middleware detects an unauthenticated user, it will redirect the user to the `login`[named route](/docs/{{version}}/routing#named-routes). You may modify this behavior using the method `redirectGuestsTo`of your application's `bootstrap/app.php` file:
192
+
When the `auth` middleware detects an unauthenticated user, it will redirect the user to the `login`[named route](/docs/{{version}}/routing#named-routes). You may modify this behavior using the `redirectGuestsTo`method within your application's `bootstrap/app.php` file:
193
193
194
194
```php
195
195
use Illuminate\Http\Request;
@@ -202,6 +202,22 @@ use Illuminate\Http\Request;
202
202
})
203
203
```
204
204
205
+
<aname="redirecting-authenticated-users"></a>
206
+
#### Redirecting Authenticated Users
207
+
208
+
When the `guest` middleware detects an authenticated user, it will redirect the user to the `dashboard` or `home` named route. You may modify this behavior using the `redirectUsersTo` method within your application's `bootstrap/app.php` file:
0 commit comments