I am setting up a laravel project, i have created a database and all the database details are correct in my env file. However, laravel seems not to be reading my .env file
When i put the right or wrong credentials and run php artisan migrate or php artisan config:cache , i get this error
In Connection.php line 664:
SQLSTATE[42601]: Syntax error: 7 ERROR: zero-length delimited identifier at or near """"
LINE 1: select * from ""."facilities" where "subdomain" is null and ...
^ (SQL: select * from ""."facilities" where "subdomain" is null and ""."facilities"."deleted_at" is null limit 1)
In Connection.php line 330:
SQLSTATE[42601]: Syntax error: 7 ERROR: zero-length delimited identifier at or near """"
LINE 1: select * from ""."facilities" where "subdomain" is null and ...
What could i be doing wrong? I have also enabled PDO in my php.ini file
My .env file looks like this :
APP_NAME="MedyQ"
APP_ENV=local
APP_KEY=*****
APP_DEBUG=true
APP_URL=http://medyq.localhost
APP_DOMAIN=medyq.localhost
LOG_CHANNEL=stack
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=medyq
DB_SCHEMA=medyq
DB_USERNAME=medyq
DB_PASSWORD=*****