laravel-admin 错误 DoctrineDBALDriverPDOMySqlDriver not found

2022-09-21 09:21:22 浏览数 (2)

问题

代码语言:javascript复制
E:codetestrukuruku>php artisan admin:make ProcessController --model=AppModelsProcess

   SymfonyComponentDebugExceptionFatalThrowableError  : Class 'DoctrineDBALDriverPDOMySqlDriver' not found

  at E:codetestrukurukuvendorlaravelframeworksrcIlluminateDatabaseMySqlConnection.php:65
    61|      * @return DoctrineDBALDriverPDOMySqlDriver
    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   IlluminateDatabaseMySqlConnection::getDoctrineDriver()
      E:codetestrukurukuvendorlaravelframeworksrcIlluminateDatabaseConnection.php:887

  2   IlluminateDatabaseConnection::getDoctrineSchemaManager("processes")
      E:codetestrukurukuvendorencorelaravel-adminsrcConsoleResourceGenerator.php:224

  Please use the argument -v to see more details.

解决

代码语言:javascript复制
composer require doctrine/dbal 2.12.1 --with-all-dependencies

0 人点赞