Hectic! What OS are you running on your localhost?
Could not find driver error
I'm trying to start up my Laravel server on localhost, but I get this error: could not find driver (SQL: select count(*) as aggregate from "restaurants")
I updated php from 7 to 8 recently after I replaced the whole php folder in my XAMPP folder. Best guess, pgsql is not being loaded correctly. So one thing I tried is this tutorial (https://gioele-bencivenga.github.io/random%20knowledge/Integrating-Postgres-Xampp_PhpPgAdmin/) and now it's listed with the other php modules..
php -m:
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
readline
Reflection
session
SimpleXML
SPL
standard
tokenizer
xml
xmlreader
xmlwriter
zip
zlib
[Zend Modules]
I'm quite upset I can't get this project to work, which was working fine until I had to update my php version...
I'm not sure what I did differently
but I booted up my project today and now it's working fine. Weird!
Please or to participate in this conversation.