【问题标题】:Laravel could not find driver using laragonLaravel 找不到使用 laragon 的驱动程序
【发布时间】:2019-06-07 01:47:14
【问题描述】:

我正在使用 laravel 在我的本地机器上使用 laragon 开发一个项目,并尝试使用 TDD 构建这个项目,当我尝试运行测试时它给了我一个错误。

Tests\Feature\ProjectsTest::a_user_can_create_a_project Illuminate\Database\QueryException: could not find driver (SQL: PRAGMA foreign_keys = ON;)

我已经在 MENU -> PHP -> Extensions 下配置了我的设置并启用了 sqlite,还尝试在我的 app/database/ 文件夹上创建 database.sqlite,但仍然出现相同的错误。

我在使用 Laravel 5.8 并且在 Windows 上。

【问题讨论】:

    标签: laravel sqlite laragon


    【解决方案1】:

    在 Laragon PHP 中启用->扩展:pdo_sqlite 和可选的 sqlite3。

    【讨论】:

      猜你喜欢
      • 2021-11-14
      • 2020-09-11
      • 2016-05-16
      • 2019-11-07
      • 2016-06-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多