Could not find a pgsql driver when I try to run command “php artisan migrate” [duplicate]

These are my database data which are stored in .env file

DB_CONNECTION=pgsql
DB_HOST=myDB
DB_PORT=5432
DB_DATABASE=stuff
DB_USERNAME=myusername
DB_PASSWORD=mypassword

When I try to run php artisan migrate in cmd. For starter, I’ve already added extension=pgsql and extension=pgsql.so in php.ini file located in C:xamppphp. There is an error such,

could not find driver (Connection: pgsql, SQL: select * from information_schema.tables where table_catalog = myDB and table_schema = public and table_name = migrations and table_type = 'BASE TABLE')

I’ve already installed postgresql, laravel, composer, xaamp. I’ve already added extension=pgsql and extension=pgsql.so in php.ini file.