If I change the Migration Structure (such like CreatePasswordResetsTable)
How I to change the database table ?
php artisan migrate:refresh will Delete my original data....
You don't change migrations. Every time you need to change the database you create a new migration, that's the point about them.
So for example:
Hello @ftiersch What do you refer when you said: creat with up() method and remove with down() method? Are you talking about the:
php artisan up php artisan down ?
Thanks
@luis02lopez The up() method is called when you do the php artisan migrate command, and the down() method is called when you do the php artisan migrate:rollback command. Check out the docs: https://laravel.com/docs/5.4/migrations
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community