作曲家更新后出现Laravel错误。 “在RouteCollection.php第67行:数组到字符串的转换”

问题描述 投票:0回答:1

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

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

下面是我的composer.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
> Illuminate\Foundation\ComposerScripts::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
php laravel composer-php laravel-5.6 artisan
1个回答
0
投票

删除缓存后发生相同的问题。

执行以下命令后,固定。

rm -f bootstrap/cache/config.php
© www.soinside.com 2019 - 2024. All rights reserved.