Umesh Singh
Umesh Singh

Reputation: 1

How to change your default database type in Laravel

I want to know what is the code for default database type in Laravel.

'default' => env('DB_CONNECTION', 'mysql')

Upvotes: 0

Views: 110

Answers (1)

DevK
DevK

Reputation: 9962

Change your .env DB_CONNECTION variable to another type

For example for SQLite:

DB_CONNECTION=sqlite

Upvotes: 1

Related Questions