|
1 | 1 | # Authentication |
2 | 2 |
|
3 | 3 | - [Introduction](#introduction) |
| 4 | + - [Database Considerations](#introduction-database-considerations) |
4 | 5 | - [Authentication Quickstart](#authentication-quickstart) |
5 | 6 | - [Routing](#included-routing) |
6 | 7 | - [Views](#included-views) |
|
12 | 13 | - [Remembering Users](#remembering-users) |
13 | 14 | - [Other Authentication Methods](#other-authentication-methods) |
14 | 15 | - [HTTP Basic Authentication](#http-basic-authentication) |
15 | | - - [Stateless HTTP Basic Authentication](#stateless-http-basic-authentication) |
| 16 | + - [Stateless HTTP Basic Authentication](#stateless-http-basic-authentication) |
16 | 17 | - [Resetting Passwords](#resetting-passwords) |
17 | 18 | - [Database Considerations](#resetting-database) |
18 | 19 | - [Routing](#resetting-routing) |
|
27 | 28 |
|
28 | 29 | Laravel makes implementing authentication very simple. In fact, almost everything is configured for you out of the box. The authentication configuration file is located at `config/auth.php`, which contains several well documented options for tweaking the behavior of the authentication services. |
29 | 30 |
|
| 31 | +<a name="introduction-database-considerations"></a> |
30 | 32 | ### Database Considerations |
31 | 33 |
|
32 | 34 | By default, Laravel includes an `App\User` [Eloquent model](/docs/{{version}}/eloquent) in your `app` directory. This model may be used with the default Eloquent authentication driver. If your application is not using Eloquent, you may use the `database` authentication driver which uses the Laravel query builder. |
@@ -278,7 +280,7 @@ To log users out of your application, you may use the `logout` method on the `Au |
278 | 280 | > **Note:** In these examples, `email` is not a required option, it is merely used as an example. You should use whatever column name corresponds to a "username" in your database. |
279 | 281 |
|
280 | 282 | <a name="remembering-users"></a> |
281 | | -## Remembering Users |
| 283 | +### Remembering Users |
282 | 284 |
|
283 | 285 | If you would like to provide "remember me" functionality in your application, you may pass a boolean value as the second argument to the `attempt` method, which will keep the user authenticated indefinitely, or until they manually logout. Of course, your `users` table must include the string `remember_token` column, which will be used to store the "remember me" token. |
284 | 286 |
|
|
0 commit comments