Tell me what is database migration? And how to use it to add insert initial data to database?
Answer / 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 |
Explain binding a singleton?
How do laravel facades work?
What is an observer?
What is acl in laravel?
How to install laravel via laravel installer.
Explain how to retrive all requested data in laravel?
Tell me what is database migration? And how to use it to add insert initial data to database?
What do you mean by tagging used in laravel 5?
How will you create a helper file in laravel?
Tell me what is service providers?
How to register a service provider via composer in laravel?
How many types of middleware are there in laravel?