Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

felxio's avatar

PHP artisan migrate command isn't working

Hi, I am following laravel tutorial named "[Laravel 5 Fundamentals] 07 - Migrations" on youtube.

I have a CreatePasswordResetsTable containing a schema to create password and another class named "CreateUsersTable". When I run php artisan migrate I only get 2 tables: migrations and users. I don't get password_resets table from CreatePasswordResetsTable.

In addition when I run php artisan migrate:status, I can see all my classes in the migration tables.

I have also tried to edith a column named in my users table. Before that I run php artisan migrate:rollback and get nothing to rollback. I fix the column name I run php artisan migrate but get and error that the table already exists. It is normal but it should be update because I make some change in it.

By The way I didn't create those classes.

Thanks for the help.

0 likes
2 replies
bobbybouwmann's avatar

There is a reason for the rollback functionality. The idea about the migration is that you don't change them. If you want to update a table you create another migration to update that table.

Now to fix it go to your database and search for the migrations table. Remove all rows that contains the tables you want to migrate again. Also remove those tables in the database ;)

Goodluck :D

felxio's avatar

Hi, I drop all the tables a strat from scratch. Now It's working. I don't get any error even when calling "php artisan migrate:rollback"

Please or to participate in this conversation.