thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

Doctrine\DBAL\Driver\PDO\Exception could not find driver #5472

Open Sahandi81 opened 2 years ago

Sahandi81 commented 2 years ago

Laravel version

v8.6.3

PHP version

7.4

Voyager version

1.5.7

Database

8.0

Description

for run project i get

Doctrine\DBAL\Driver\PDO\Exception could not find driver

Steps to reproduce

and for fix this problem i want to enter commend

composer require doctrine/dbal

and i get

composer require doctrine/dbal
Using version ^3.1 for doctrine/dbal
./composer.json has been updated
Running composer update doctrine/dbal
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - tcg/voyager is locked to version v1.5.1 and an update of this package was not requested.
    - tcg/voyager v1.5.1 requires doctrine/dbal ^2.5 -> found doctrine/dbal[v2.5.0-BETA2, ..., 2.13.x-dev] but it conflicts with your root composer.json require (^3.1).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Expected behavior

fix it like JIT :)

Screenshots

No response

Additional context

No response

fletch3555 commented 2 years ago

You're telling it to install a version that Voyager doesn't support. Use the version Voyager does support (2.5), which should be included automatically (I think..) by Voyager itself.