.env:
DB_CONNECTION=pgsql
DB_HOST=localhost
DB_PORT=5432
DB_DATABASE=task
DB_USERNAME=root
DB_PASSWORD=
Создаю миграцию:
php artisan migrate
Ошибка:
Illuminate\Database\QueryException
could not find driver (SQL: select * from information_schema.tables where table_catalog = task and table_schema = public and table_name = migrations and table_type = 'BASE TABLE')
at C:\Program Files\OSPanel\domains\first_project\vendor\laravel\framework\src\Illuminate\Database\Connection.php:760
756▕ // If an exception occurs when attempting to run a query, we'll format the error
757▕ // message to include the bindings with SQL, which will make this exception a
758▕ // lot more helpful to the developer instead of just the database's errors.
759▕ catch (Exception $e) {
➜ 760▕ throw new QueryException(
761▕ $query, $this->prepareBindings($bindings), $e
762▕ );
763▕ }
764▕ }
1 C:\Program Files\OSPanel\domains\first_project\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDOException::("could not find driver")
2 C:\Program Files\OSPanel\domains\first_project\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDO::__construct("pgsql:host=127.0.0.1;dbname='task';port=5432;sslmode=prefer", "root", Object(SensitiveParameterValue), [])
Я так понял, мне нужно установить
pgsql
, но не нашел как это сделать для винды