Skip to content

Commit 4b16aeb

Browse files
committed
Adding more notes to the docs.
1 parent 49f95e2 commit 4b16aeb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

security.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ By default, Laravel includes a `User` model in your `app/models` directory which
1919

2020
If your application is not using Eloquent, you may use the `database` authentication driver which uses the Laravel query builder.
2121

22+
> **Note:** Before getting started, make sure that your `users` (or equivalent) table contains a string `remember_token` column. This column will be used to store a token for "remember me" sessions being maintained by your application.
23+
2224
<a name="storing-passwords"></a>
2325
## Storing Passwords
2426

@@ -65,10 +67,10 @@ To determine if the user is already logged into your application, you may use th
6567
// The user is logged in...
6668
}
6769

68-
If you would like to provide "remember me" functionality in your application, you may pass `true` as the second argument to the `attempt` method, which will keep the user authenticated indefinitely (or until they manually logout):
69-
7070
#### Authenticating A User And "Remembering" Them
7171

72+
If you would like to provide "remember me" functionality in your application, you may pass `true` 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.
73+
7274
if (Auth::attempt(array('email' => $email, 'password' => $password), true))
7375
{
7476
// The user is being remembered...

0 commit comments

Comments
 (0)