If you are developing a Laravel application on Windows and suddenly encounter this error:
PDOException: could not find driver
Enter fullscreen mode
Exit fullscreen mode
Don't panic. You probably don't need to reinstall Laravel, Composer, or even PHP.
I recently encountered this issue while working on my Laravel project, SamuPOS , after migrating my development environment to Windows 11.
The problem was related to PHP database extensions, specifically the missing or disabled pdo_mysql extension.
In this tutorial, I'll walk you through how to identify the problem, enable the required PHP extension, and verify that Laravel can communicate with your MySQL database.
Whether you are a beginner or an experienced developer setting up Laravel on Windows, this guide should help you troubleshoot the issue.
1.β¦