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