Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/5.2' into 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 25, 2016
2 parents 33c92ca + d41c3c5 commit ba7a01d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Don't worry if this all sounds confusing now! Most applications will never need

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.

When building the database schema for the `App\User` model, make sure the password column is 60 characters in length.
When building the database schema for the `App\User` model, make sure the password column is at least 60 characters in length, the default of 255 would be a good choice.

Also, you should verify 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.

Expand Down
4 changes: 3 additions & 1 deletion migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ We could also modify a column to be nullable:
$table->string('name', 50)->nullable()->change();
});

> **Note:** Modifying any column in a table that also has a column of type `enum` is not currently supported.
<a name="renaming-columns"></a>
#### Renaming Columns

Expand All @@ -265,7 +267,7 @@ To rename a column, you may use the `renameColumn` method on the Schema builder.
$table->renameColumn('from', 'to');
});

> **Note:** Renaming columns in a table with a `enum` column is not currently supported.
> **Note:** Renaming any column in a table that also has a column of type `enum` is not currently supported.
<a name="dropping-columns"></a>
### Dropping Columns
Expand Down

0 comments on commit ba7a01d

Please sign in to comment.