adspace
Tell me what is database migration? And how to use it to add insert initial data to database?
Answer Posted / Pratibha Pal
Database migrations are a feature in Laravel that allows you to create, modify, and rollback your database schema. To use migrations for adding initial data to the database, you can define a new migration, add a new column or table, and seed the database with initial data using the php artisan make:migration command, the php artisan migrate command, and the php artisan db:seed command respectively.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers