Skip to content

Commit f0a1acb

Browse files
author
Juan Eugenio Abadie
committed
Merge pull request #1 from whoan/whoan-patch-2
Minor improvements
2 parents d4499e1 + c75a311 commit f0a1acb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

authentication.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Authentication
22

33
- [Introduction](#introduction)
4+
- [Database Considerations](#introduction-database-considerations)
45
- [Authentication Quickstart](#authentication-quickstart)
56
- [Routing](#included-routing)
67
- [Views](#included-views)
@@ -12,7 +13,7 @@
1213
- [Remembering Users](#remembering-users)
1314
- [Other Authentication Methods](#other-authentication-methods)
1415
- [HTTP Basic Authentication](#http-basic-authentication)
15-
- [Stateless HTTP Basic Authentication](#stateless-http-basic-authentication)
16+
- [Stateless HTTP Basic Authentication](#stateless-http-basic-authentication)
1617
- [Resetting Passwords](#resetting-passwords)
1718
- [Database Considerations](#resetting-database)
1819
- [Routing](#resetting-routing)
@@ -27,6 +28,7 @@
2728

2829
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.
2930

31+
<a name="introduction-database-considerations"></a>
3032
### Database Considerations
3133

3234
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
278280
> **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.
279281
280282
<a name="remembering-users"></a>
281-
## Remembering Users
283+
### Remembering Users
282284

283285
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.
284286

0 commit comments

Comments
 (0)