Hi!
today i pushed a new version of my laravel app, the configuration was not touched, but i get this error when trying to connect to the db “could not find driver”, i’m using a postgres db and inside my docker file i installed the postgres extension
php${PHP_VERSION}-pgsql
Do you have any suggestion?
Hi @AlessioGiacobbe !
Can you check your php.ini
file and see if your PGSQL driver is available and uncommented:
extension=pgsql
Thanks for the reply, the extension was enabled.
however there was a mismatch between the docker php version and the required php extensions in the docker file (the version was 8.2 and the required extensions version was 8.1) aligning the php versions solved the problem
1 Like
Great catch! I’m glad you’ve figured out that fix!