The command, php artisan migrate:refresh
, first rolls back previous migrations, so it is running Schema::drop('tests');
in this case. If you wish to modify the table without losing existing data, you should create a new migration and call php artisan migrate
.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community