adspace


How can someone change the default database type in laravel?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

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

839


What is latest version of laravel?

869


How much laravel experience do you have?

815


Tell us have you used lumen before?

808


What is current stable version of laravel?

870