Laravel Migration Index undefined index

I am using Laravel 5.3. I deleted one of my β€œName” files from my migration file and everything connected with it very carefully, like its identifier from other tables, etc. Then I manually deleted the table from the database. But now that I have run the command "php artisan migrate: refresh". When displaying an error with the index "undefined: *** _ create_features_table". And when I run only "php artisan migrate", it shows that it was successful, and all the tables are successfully displayed in the database. but then when I run migrate: refresh the whole table disappears. What should I do to completely remove the migration file?

+5
source share
3 answers

Try it.

First manually delete the migration file in app/database/migrations/my_migration_file_name.php

Reset composer autoload files: composer dump-autoload

Change your database: delete the last entry from the migrations table

+29
source

Here is what I did. I cleared all the data from the database, including all the tables, and then ran "php artisan migrate" .. this is how I made it work. But I'm looking for a better solution that will not be necessary to delete everything from the database.

+4
source

Try checking the migration first

php artisan migrate:status

Then you can try something like

php artisan migrate:refresh --step=1

And check the status again.

0
source

All Articles