Illuminate\Database\QueryException could not find driver
IlluminateDatabaseQueryException could not find driver
In this article, we will see how to solve "IlluminateDatabaseQueryException could not find driver".
You have to enable the pdo_mysql extension in php.ini file to avoid the error Illuminate\Database\QueryException could not find driver in Laravel-
Enable pdo_mysql using php.ini file
--PATH E:\laragon\bin\php\php-8.0.16-Win32-vs16-x64\php.iniextension=pdo_mysql
Just remove the ; from the ;extension=pdo_mysql in the php.ini file to avoid the exception in Laravel.
File path may be different.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
Don't forget to share this article! Help us spread the word by clicking the share button below.
We appreciate your support and are committed to providing you valuable and informative content.
We are thankful for your never ending support.
Random Code Snippet Queries: Laravel
- How to remove package from laravel
- Display first n record from collection in laravel view
- Non-static method App\Http\Helper::myFunction() should not be called statically
- Add [name] to fillable property to allow mass assignment on [App\Models\Project]
- How to create project_user pivot table in laravel
- The Pusher library requires the PHP cURL module. Please ensure it is installed
- How to get data from two tables in laravel
- How to validate URL with https using regex in laravel
- Conditional where clause in Laravel
- Database transactions in laravel
- Laravel append URI in route
- How to check data inserted or deleted in pivot after toggle method
- Retain selected value of select box in Laravel
- Save or update pivot table data with additional column in Laravel
- How to include header file in laravel
- Pagination in laravel
- Check if Relationship Method Exists in Laravel
- How to get IP address in laravel
- Add a subselect based on relationship using withAggregate method
- How to call controller function from view in Laravel
- How to customize pagination view in laravel
- Insert values in pivot table dynamically in laravel
- 419 page expired error in Laravel
- Laravel delete all rows older than 30 days
- Get comma separated email from input array