How to fix an error with laravel migration?

when executing the command php artisan migrate / php artisan migrate:refresh / php artisan migrate --seed, you receive the error:
Illuminate\Database\QueryException : could not find driver (SQL: select * from information_schema.tables where table_schema = app and table_name = migrations and table_type = 'BASE TABLE')

at C:\Users\Admin\OpenServer\OSPanel\domains\project\vendor\laravel\framework\src\Illuminate\Database\Connection.php:669
665| // If an exception occurs when attempting to run a query, we'll format the error
666| // message to include the bindings with SQL, which will make this exception a
667| // lot more helpful to the developer instead of just the database''s errors.
668| catch (Exception $e) {
> 669| throw new QueryException(
670| $query, $this->prepareBindings($bindings), $e
671| );
672| }

Exception trace:

1 Doctrine\DBAL\Driver\PDOException::("could not find driver")

2 PDOException::("could not find driver")

Please use the argument -v to see more details.

laravel version: 6.11.0. the problem even on a new project.
file .env is configured correctly.
use open server. reinstallation does not help.
as I understand it: for some reason there is no driver (presumably PDOException). If the problem is the driver can you tell how to install it or to prescribe. Trying to find a solution for 3 weeks.
Thanks in advance!
April 4th 20 at 13:03
1 answer
April 4th 20 at 13:05
I forgot about this question )
Helped adding
in a function boot along the way app/providers/AppServiceProvider.php
I start with the requirements for defaultu. it all - Abdiel_Yost53 commented on April 4th 20 at 13:08

Find more questions by tags PHP