gpt4 book ai didi

laravel-5.1 - Laravel 5.1 : Class 'Doctrine\DBAL\Driver\PDOSqlite\Driver' not found

转载 作者:行者123 更新时间:2023-12-04 14:26:03 26 4
gpt4 key购买 nike

我正在使用 laravel 5.1,我正在尝试执行 migrate:refresh,我收到一个错误:

Class 'Doctrine\DBAL\Driver\PDOSqlite\Driver' not found in ../vendor/laravel/framework/src/Illuminate/Database/SQLiteConnection.php

[Symfony\Component\Debug\Exception\FatalErrorException] Class 'Doctrine\DBAL\Driver\PDOSqlite\Driver' not found



我的 composer.json 中已经需要 Doctrine/dbal
 "require": {
"php": ">=5.5.9",
"laravel/framework": "5.1.*",
"Doctrine/dbal": "^2.5"
}

所以我想问一下我的laravel项目有什么问题。

最佳答案

From the official docs :

Before modifying a column, be sure to add the doctrine/dbal dependency to your composer.json file. The Doctrine DBAL library is used to determine the current state of the column and create the SQL queries needed to make the specified adjustments to the column:

composer require doctrine/dbal

关于laravel-5.1 - Laravel 5.1 : Class 'Doctrine\DBAL\Driver\PDOSqlite\Driver' not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33002659/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com