作曲家更新后拉拉维尔错误。 "In RouteCollection.php line 67: Array to string conversion"



我有一个从我的仓库克隆的Laravel项目。但是,在作曲家更新后,此错误会弹出"In RouteCollection.php line 67:Array to string conversion"

我已经删除了供应商文件夹并尝试再次执行composer dump-autoload then composer update但没有运气。

下面是我的作曲家.json

"require": {
    "php": ">=5.6.4",
    "barryvdh/laravel-cors": "^0.10.1",
    "barryvdh/laravel-debugbar": "^2.3",
    "barryvdh/laravel-dompdf": "0.8.2",
    "barryvdh/laravel-snappy": "0.4.1",
    "davibennun/laravel-push-notification": "dev-laravel5",
    "gloudemans/shoppingcart": "^2.3",
    "guzzlehttp/guzzle": "^6.3",
    "h4cc/wkhtmltopdf-amd64": "0.12.x",
    "intervention/image": "^2.3",
    "kim/activity": "^1.1",
    "laravel/framework": "5.4.*",
    "laravel/passport": "~3.0.0",
    "laravel/tinker": "~1.0",
    "laravelcollective/html": "^5.4",
    "maatwebsite/excel": "~2.1.0",
    "maddhatter/laravel-fullcalendar": "~1.0",
    "nicolaslopezj/searchable": "1.*",
    "predis/predis": "^1.1",
    "simplesoftwareio/simple-qrcode": "~2",
    "wemersonjanuario/wkhtmltopdf-windows": "0.12.2.3",
    "willvincent/laravel-rateable": "^1.0"
},
"require-dev": {
    "fzaninotto/faker": "~1.4",
    "mockery/mockery": "0.9.*",
    "phpunit/phpunit": "~5.7"
},

作曲家更新后:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Package phpoffice/phpexcel is abandoned, you should avoid using . 
it. Use phpoffice/phpspreadsheet instead.
Package phpunit/phpunit-mock-objects is abandoned, you should 
avoid using it. No replacement was suggested.
Generating optimized autoload files
> IlluminateFoundationComposerScripts::postUpdate
> php artisan optimize
In RouteCollection.php line 67:
Array to string conversion  

Script php artisan optimize handling the post-update-cmd event 
returned with error code 1

在 php 工匠之后:

php artisan
In RouteCollection.php line 67:
Array to string conversion

删除缓存后也出现了同样的问题。

执行以下命令后,它被修复了。

rm -f bootstrap/cache/config.php

相关内容

  • 没有找到相关文章

最新更新