工匠迁移错误“找不到Class'Doctrine \\ DBAL \\ Driver \\ PDOMySql \\ Driver'", [英] artisan migration error "Class 'Doctrine\\DBAL\\Driver\\PDOMySql\\Driver' not found",

查看:50
本文介绍了工匠迁移错误“找不到Class'Doctrine \\ DBAL \\ Driver \\ PDOMySql \\ Driver'",的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试运行迁移时,出现错误Artisan migration

错误:找不到类'Doctrine \\ DBAL \\ Driver \\ PDOMySql \\ Driver'

我已经在这里阅读了问题,还看到了要添加的注释:

doctrine/dbal":composer.json的require部分中的〜2.3

Github错误报告

但是,我不知道发生了什么事.我几天前创建了表格,没问题.

在composer.son中添加该依赖项后,我不知道该怎么办.

我不想意外地更新其他任何软件包.

解决方案

需要将 doctrine/dbal 依赖项添加到您的 composer.json

  composer需要原理/dbal 

有关更多信息,请检查 laravel#修改列

When trying to run a migration I get the error Artisan migration

error:Class 'Doctrine\\DBAL\\Driver\\PDOMySql\\Driver' not found

I have read the questions here and also see the notes to add:

doctrine/dbal": "~2.3 in the requires section of composer.json

Github Bug Report

However, I don't understand what has happened. I created table a few days ago with no issue.

I can't figure out what to do after adding that dependency in composer.son.

I don't want to accidentally update any other packages.

解决方案

The doctrine/dbal dependency needs to be added to your composer.json

composer require doctrine/dbal

For more information check laravel #Modifying Columns

这篇关于工匠迁移错误“找不到Class'Doctrine \\ DBAL \\ Driver \\ PDOMySql \\ Driver'",的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆