How can someone change the default database type in laravel?



How can someone change the default database type in laravel?..

Answer / Satish Kumar

To change the default database type in Laravel, you need to modify the '.env' file and update the 'DB_CONNECTION' parameter. Available options are 'mysql', 'pgsql', 'sqlite', 'sqlsrv', and 'postgresql'. After changing this setting, run `composer dump-autoload` and migrate your database again.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

What are the main features of laravel?

1 Answers  


What is laravel scout?

1 Answers  


How to check ajax request in laravel?

1 Answers  


What is meant by Attaching Headers ?

2 Answers  


What are terminable middlewares?

1 Answers  


What is name of first file that loaded in laravel?

1 Answers  


List some aggregates methods provided by query builder in laravel?

1 Answers  


What is meant by Attaching Cookies ?

2 Answers  


How to send mail using queue in laravel 5?

1 Answers  


Why we use csrf token in laravel?

1 Answers  


Explain the concept of routing in laravel.

1 Answers  


What is laravel policy?

1 Answers  


Categories