xxxxxxxxxx
sudo apt-get install php-sqlite3
xxxxxxxxxx
//for window users, uncomment below tow lines in php.ini
;extension=pdo_sqlite // by removing the ; should look like this extension=pdo_sqlite
;extension=sqlite3 // should be extension=sqlite3 without the ; symbol
xxxxxxxxxx
Sometimes sudo apt-get install php-sqlite3 doesn't work.
You have to specify the php version to get the exact driver in your computer.
In case you have php version 7.4 then you need to run
sudo apt-get install php7.4-sqlite3
xxxxxxxxxx
/* my php version : 8.3.4 and laravel version : 11.0.8 , my os : windows
I fixed the problem with this solution
in windows : */ active extension=pdo_sqlite -- in php.ini file
-- To activate: remove the semicolon (;) from the beginning in php.ini file
;extension=pdo_sqlite
extension=pdo_sqlite