Can anyone help me to fix this problem please the error is database [postgres] not configured.
here is my .env file :
DB_CONNECTION=postgres
DB_HOST=localhost
DB_PORT=5432
DB_DATABASE=referentiel
DB_USERNAME=postgres
DB_PASSWORD=postgres
and here is my database.php:
'default' => 'postgres',
'pgsql' => [
'driver' => 'pgsql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '5432'),
'database' => 'referentiel',
'username' => env('postgres', ''),
'password' => env('postgres', ''),
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
'sslmode' => 'prefer',
],