When trying to run a migration I get the error Artisan migration
[SymfonyComponentDebugExceptionFatalThrowableError]
Class ‘DoctrineDBALDriverPDOMySqlDriver’ not found
i already installed doctrine/dbal using
composer require doctrine/dbal
and on my composer.json already had
doctrine/dbal”: “^3.0”
but i still got this error
Advertisement
Answer
This new version is having this issue.
a workaround for that can be:
- change version to
"doctrine/dbal": "^2.12.1"
in composer.json file - run
composer update