What is the error laravel 5 in the migrate command:refresh?

Error
[Symfony\Component\Debug\Exception\FatalThrowableError]
Fatal error: Class 'CreatePhotosTable' not found

Did migrate, was created in the database. Added a field in another table users and migrate:refrash gives this error
July 12th 19 at 17:33
2 answers
July 12th 19 at 17:35
$ composer dumpautoload -o

Often a problem. The command above solves it.
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
Here it is:
$ php artisan make:migration --add_field_to_users_table table="users"


Be careful. Migration should be Schema::table, not Schema::create - destany34 commented on July 12th 19 at 17:56
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.

Find more questions by tags PHPLaravel