could not find driver (SQL: select count(*) as aggregate from "users" where "email" = admin@gmail.com), This error I wash fetching while I was working with laravel with Postgres database, my application already working on MYSQL database but when I try to change the database from MYSQL to POSTGRESSQL that time this error appear in my laravel application.
This error says that the driver pgsql which you are using is not found in your apache server, So in this case, there is two way we can fix this error.
May you have to install that extension or if the extension already exists within your apache server you can just enable it.
This error in my case but your case may be a different extension error but in most case this error show because of not having an extension.
xampp\php\php.ini;extension=pdo_pgsql // TO (ENABLE BY REMOVING ";") extension=pdo_pgsql
Error:

Solution:
goto xampp\php\php.ini and enable extension as per below given.

We always thanks to you for reading our blogs.
Dharmesh Chauhan
(Swapinfoway Founder)Hello Sir, We are brothers origin from Gujarat India, Fullstack developers working together since 2016. We have lots of skills in web development in different technologies here I mention PHP, Laravel, Javascript, Vuejs, Ajax, API, Payment Gateway Integration, Database, HTML5, CSS3, and Server Administration. So you need our service Please Contact Us
Haresh Chauhan
(Co-Founder)We Are Also Recommending You :
- Laravel Livewire CRUD Using Bootstrap Modal Full Example Guideline And Demo Source Code
- Non-static method Illuminate\Http\Request::method() should not be called statically
- Default index.php Root Path Change And Remove Public From The Url
- How to Send Email with Laravel 10
- groupBy() Method Laravel Collection Exmaple
- Laravel 12 Authentication with Breeze & Sanctum (Complete Guide 2026)
- myfatoorah Payment Gateway Integration Laravel
- Call to undefined function Gregwar\Captcha\imagecreatetruecolor()
- How To Secure Laravel Website From Hackers
- Laravel One to One Eloquent Relationship Tutorial