Laravel did not install the driver by itself on a windows platform. PGsql, mysql and even SQlite all not working because of this and I really don`t know how to setup it.
the console output:
Illuminate\Database\QueryException
could not find driver (SQL: select * from information_schema.tables where table_schema = public and table_name = migrations and table_type = 'BASE TABLE')
at C:\Users\wital\OneDrive\Desktop\Rokc\vendor\laravel\framework\src\Illuminate\Database\Connection.php:712
708▕ // If an exception occurs when attempting to run a query, we'll format the error
709▕ // message to include the bindings with SQL, which will make this exception a
710▕ // lot more helpful to the developer instead of just the database's errors.
711▕ catch (Exception $e) {
➜ 712▕ throw new QueryException(
713▕ $query, $this->prepareBindings($bindings), $e
714▕ );
715▕ }
716▕ }
1 C:\Users\wital\OneDrive\Desktop\Rokc\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDOException::("could not find driver")
2 C:\Users\wital\OneDrive\Desktop\Rokc\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDO::__construct("pgsql:host=127.0.0.1;dbname='roks';port=3306;sslmode=prefer", "root", "", [])
database.php setup is all done
> 'host' => env('DB_HOST', '127.0.0.1'),
> 'port' => env('DB_PORT', '5432'),
> 'database' => env('DB_DATABASE', 'roks'),
> 'username' => env('DB_USERNAME', 'postgres'),
> 'password' => env('DB_PASSWORD', 'admin'),
.env file checked for line
DB_CONNECTION=sqlite
or
DB_CONNECTION=pgsql
Also
sudo apt-get install php-pgsql
is not a valid option for windows / / If there is some artisan or composer command, i would be happy to know that from you, but I haven`t find any.