
Illuminate\Database\QueryException 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
Answers 1
-
Enable pdo_mysql using php.ini file
--PATH E:\laragon\bin\php\php-8.0.16-Win32-vs16-x64\php.iniextension=pdo_mysql
0Just remove the ; from the ;extension=pdo_mysql in the php.ini file to avoid the exception in Laravel.
File path may be different.
Random Code Snippet Queries: Laravel
- How to make Copy or Duplicate table row in laravel
- Seed database using SQL file in Laravel
- Automatically remove records using Prunable trait in Laravel
- How to disable timestamps in laravel
- How to get IP address in laravel
- Get ids in array from users table
- Remove public from url in laravel project
- Submit form without CSRF token in Laravel
- How to pass query string to url in laravel
- Get products with number of orders in Laravel
- How to get all route list
- How to decrypt laravel password
- How to create project_user pivot table in laravel
- Create project table with model and migration
- Class 'App\Http\Controllers\User' not found
- Touch parent updated_at in Laravel
- How to add script on specific view file in laravel while extending layout
- How to update record after save method in Laravel
- How to get user information using hootlex/laravel-friendships package in laravel
- Send OTP using textlocal api in laravel
- Call to undefined method Illuminate\Support\Facades\Request::all()
- Laravel 9 pagination with search filter
- Insert data with form validation using ajax in laravel
- How to send ID to another page in Laravel
- How to avoid duplicate entries in pivot table in Laravel