Skip to content

Commit

Permalink
Adding $table->rememberToken() docs.
Browse files Browse the repository at this point in the history
This can be merged with laravel/framework#4622

Signed-off-by: Adam Engebretson <[email protected]>
  • Loading branch information
adamgoose committed Jun 8, 2014
1 parent 0dd99f8 commit fa32245
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ Command | Description
`$table->time('sunrise');` | TIME equivalent to the table
`$table->timestamp('added_on');` | TIMESTAMP equivalent to the table
`$table->timestamps();` | Adds **created\_at** and **updated\_at** columns
`$table->rememberToken();` | Adds `remember_token` as VARCHAR(100) NULL
`->nullable()` | Designate that the column allows NULL values
`->default($value)` | Declare a default value for a column
`->unsigned()` | Set INTEGER to UNSIGNED
Expand Down
2 changes: 1 addition & 1 deletion security.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ By default, Laravel includes a `User` model in your `app/models` directory which

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

> **Note:** Before getting started, make sure that your `users` (or equivalent) table contains a nullable, string `remember_token` column of 100 characters. This column will be used to store a token for "remember me" sessions being maintained by your application.
> **Note:** Before getting started, make sure that your `users` (or equivalent) table contains a nullable, string `remember_token` column of 100 characters. This column will be used to store a token for "remember me" sessions being maintained by your application. This can be done by using `$table->rememberToken();` in a migration.
<a name="storing-passwords"></a>
## Storing Passwords
Expand Down

0 comments on commit fa32245

Please sign in to comment.