Need Assistance?

support@tutorialshub.in

Database Migrations & Seeding

Modifying Tables & Rollbacks

ADVERTISEMENT
Laravel Free Lesson
5 min read
ADVERTISEMENT

Never edit an old migration that has already been run in production. Instead, create a new migration (e.g., add_views_to_articles_table) using Schema::table(), and write the reverse action inside down() so php artisan migrate:rollback works cleanly.

ADVERTISEMENT
Hi, I'm Tuby! Here to help you