Ошибка Laravel после обновления композитора.«В строке 67 RouteCollection.php: преобразование массива в строку» - PullRequest
0 голосов
/ 08 апреля 2019

У меня есть проект 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
...