syed1234
syed1234

Reputation: 835

Unsupported driver [ ] in laravel

i am facing issue of unsupported driver while hitting my API i have following configurations in my config/database.php

        'mysql' => [
        'driver' => env('DB_CONNECTION'),
        'host' => env('DB_HOST'),
        'port' => env('DB_PORT'),
        'database' => env('DB_DATABASE'),
        'username' => env('DB_USERNAME'),
        'password' => env('DB_PASSWORD'),
      //  'unix_socket' => env('DB_SOCKET', ''),
        'charset' => 'utf8mb4',
        'collation' => 'utf8mb4_unicode_ci',
        'prefix' => '',
        'strict' => true,
        'engine' => null,
          ],

and my env file

            DB_CONNECTION=mysql
           DB_HOST=someURLsomeUrl
           DB_PORT=3306
         DB_DATABASE=ovadahealth_dev
        DB_USERNAME=ovadahealth_user
         DB_PASSWORD=password

I have spent an hours in this issue and i cant find out where is the issue when i hit my api in postman it says:

 {
"status": false,
"message": "Unsupported driver []"
}

Here your help will be highly appreciated!

Upvotes: 1

Views: 13101

Answers (1)

Akash Kumar Verma
Akash Kumar Verma

Reputation: 3338

  1. use php artisan config:clear to clear your configuration.

Upvotes: 0

Related Questions