0

firstly I create a migration and in cmd, I run php artisan migrate but it didn't create a new table. it's showing this message. Do you have any answer, Senior Developers! please help me. Thanks a lot

1
  • Can you share us the error message that you are getting? Commented Jan 22, 2019 at 15:12

1 Answer 1

1

Laravel Documentation for Migration

If you want to run the migration without saving any data in database you can :

php artisan migrate:fresh

// Refresh the database and run all database seeds...
php artisan migrate:fresh --seed
Sign up to request clarification or add additional context in comments.

7 Comments

Thanks Romain Seite. after I run -php artisam migrate and error show like- 'base table or view already exist:1050 table 'password_resets' already exits(SQL: create table 'password_resets' ('email' varchar(255) not null, 'token' varchar(255) not null
try the php artisan migrate:fresh
I tried as you told and it show -'dropped all tables successfully' with migration
And if you check your database, did you have new table ?
oh! now not occur error and it is ok .thanks a lot Romain Seite
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.