将Laravel从5.4升级到5.7后,出现工匠错误

时间:2019-01-11 06:27:54

标签: laravel laravel-5.7

我已经成功地将Laravel项目从5.4.*更新到了5.7.*,但是当我运行工匠命令api:route时,它会返回此错误:

  

在RouteListCommand.php第71行中:                                                                                    count():参数必须是实现的数组或对象   可数的

我已删除供应商文件夹并运行composer update

composer.json

{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
    "php": "^7.1.3",
    "barryvdh/laravel-cors": "^0.11.2",
    "bugsnag/bugsnag-laravel": "^2.0",
    "dingo/api": "1.0.*@dev",
    "doctrine/dbal": "^2.6",
    "dompdf/dompdf": "^0.8.2
    "laravel/framework": "5.7.*",
    "laravel/socialite": "^3.0",
    "laravel/tinker": "~1.0",
    "pragmarx/google2fa-laravel": "^0.2.0",
    "pusher/pusher-php-server": "^3.0",
    "tymon/jwt-auth": "0.5.*"
    "yajra/laravel-datatables-fractal": "^1.0",
    "yajra/laravel-datatables-oracle": "~8.0",
    "wpb/string-blade-compiler": "dev-laravel-5.7"
},
"require-dev": {
    "barryvdh/laravel-dompdf": "^0.8.2",
    "fzaninotto/faker": "~1.4",
    "mockery/mockery": "0.9.*",
    "phpunit/phpunit": "7.0"
},

0 个答案:

没有答案