In Ubuntu (18.04)
apt install php-mysql
Happy coding #uzi :)
sudo apt-get install php-sqlite3
1. You might need to comment out the following in your php.ini file.
;extension=pdo_mysql
2. run: composer upgrade
and restart laravel project
sudo apt-get install php5.6-mysql/php7.2-mysql
sudo apt-cache serch drivername
If using mysql, uncomment extension for pdo_mysql in php.ini
To find php.ini path,
php --ini
;extension=pdo_mysql
TO
extension=pdo_mysql
extension=pdo_mysql