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


Please Help Members By Posting Answers For Below Questions

How much laravel experience do you have?

815


What is current stable version of laravel?

870


What is latest version of laravel?

869


Tell us have you used lumen before?

808


Do you know what version of laravel do you generally use?

839