问题
E:\code\test\ruku\ruku>php artisan admin:make ProcessController --model=App\Models\Process
Symfony\Component\Debug\Exception\FatalThrowableError : Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found
at E:\code\test\ruku\ruku\vendor\laravel\framework\src\Illuminate\Database\MySqlConnection.php:65
61| * @return \Doctrine\DBAL\Driver\PDOMySql\Driver
62| */
63| protected function getDoctrineDriver()
64| {
> 65| return new DoctrineDriver;
66| }
67|
68| /**
69| * Bind values to their parameters in the given statement.
Exception trace:
1 Illuminate\Database\MySqlConnection::getDoctrineDriver()
E:\code\test\ruku\ruku\vendor\laravel\framework\src\Illuminate\Database\Connection.php:887
2 Illuminate\Database\Connection::getDoctrineSchemaManager("processes")
E:\code\test\ruku\ruku\vendor\encore\laravel-admin\src\Console\ResourceGenerator.php:224
Please use the argument -v to see more details.
解决
composer require doctrine/dbal 2.12.1 --with-all-dependencies
Comment here is closed