What is database migration used in Laravel 5? Explain
In Laravel, Migration is a type of version control for our database. It is allowing us to modify and share the application's database schema easily.
A migration file contains two methods up() and down(). up() is used to add new tables, columns, or indexes database and the down() is used to reverse the operations performed by the up method.
You can generate a migration & its file with the help of
php artisan make:migration blog
A current_date_blog.php file will be create in
Suggest An Answer
Laravel can optionally log in memory all queries that have been run for the current request. Be aware that in some cases, such as when inserting a large number of rows, this can cause the application to use excess memory. To enable the log, you may use the