done after error
[PDOException]
SQLSTATE[HY000] [2002] n ufyi■hash areathey Oh, Yea.b. yuehe√o Julia No.■He uthau craeye er authy■hash. - gabriel80 commented on July 12th 19 at 17:38
obviously something with the coding not that. Need more info.. - destany34 commented on July 12th 19 at 17:41
: updated the file after you did migrate:refresh and about God. Database is empty - gabriel80 commented on July 12th 19 at 17:44
: logical. As migration:refresh first rolls back all migrations, and then rolls them again. You most likely have a rollback after the script fell. Run php artisan migrate - destany34 commented on July 12th 19 at 17:47
: but if I added a field in users how can I update the table by adding this field? Without removing from the data table - gabriel80 commented on July 12th 19 at 17:50
: need to do a new migration (with the command php artisan make:migration --add_field_to_users_table table="users"
This command will create a new migration with name add_field_to_users_table in which just fill the required fields.
Then will simply need to call php artisan migrate to apply the migration. - destany34 commented on July 12th 19 at 17:53
Be careful. Migration should be Schema::table, not Schema::create - destany34 commented on July 12th 19 at 17:56
Gladyce57 answered on July 12th 19 at 17:37
The migration class was not included in the startup, that is, the Composer could not see him, respectively Laravel too. Helps console command composer dump-o after creating a new migration.
Please sign in or sign up to write your answer or comment.
[PDOException]
SQLSTATE[HY000] [2002] n ufyi■hash areathey Oh, Yea.b. yuehe√o Julia No.■He uthau craeye er authy■hash. - gabriel80 commented on July 12th 19 at 17:38
This command will create a new migration with name add_field_to_users_table in which just fill the required fields.
Then will simply need to call php artisan migrate to apply the migration. - destany34 commented on July 12th 19 at 17:53
Be careful. Migration should be Schema::table, not Schema::create - destany34 commented on July 12th 19 at 17:56