How to add cell user's password to database with the migration of Laravel framework? -
Dres can not be found, how to add the cell user's password to the database in the database with the larval framework's migration?
Like the official document:
public work up () {schema :: create ('user', function ($ table) {$ table- & gt; Increase ('id'); $ table- & gt; string ('email') - & gt; exclusive ($); $ table- & gt; string ('name'); $ table- & gt; timestamp; }); } Public Function Below () {Schema :: Drop ('User'); }
found solution in textbook (page №250):
$ table-> String ('password', 60);
Comments
Post a Comment