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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -