php artisan optimize NULL.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to unde
Posted
技术标签:
【中文标题】php artisan optimize NULL.ERROR: Symfony\\Component\\Debug\\Exception\\FatalThrowableError: Call to undefined method Illuminate\\Foundation\\Bootstrap【英文标题】:php artisan optimize NULL.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Illuminate\Foundation\Bootstrapphp artisan optimize NULL.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Illuminate\Foundation\Bootstrap 【发布时间】:2020-08-13 12:59:38 【问题描述】:我人生中第一次建立一个现有的 Laravel 项目,
我正在使用
macOS Catlina 版本 10.15.2 MongoDB 3.2 php 7.2当我使用 composer install 时,出现以下错误:
php artisan 优化 NULL.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: 调用 未定义的方法 Illuminate\Foundation\Bootstrap\ConfigureLogging::configureHandler()
我已经通过 Stack Overflow 上的多个链接但没有运气,我已多次删除供应商文件夹和 composer.lock 并尝试运行 composer install 但错误相同
有人能帮我解决这个问题吗
下面是我的composer.json
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require":
"php": ">=5.6.4",
"laravel/framework": "5.3.*",
"laravelcollective/html": "^5.3.0",
"laravel/passport": "^1.0",
"moloquent/moloquent": "dev-master",
"predis/predis": "^1.1",
"proengsoft/laravel-jsvalidation": "~1.1",
"barryvdh/laravel-cors": "^0.9.2",
"dingo/api": "1.0.x@dev",
"tymon/jwt-auth": "^1.0@dev",
"irazasyed/jwt-auth-guard": "^1.0",
"maatwebsite/excel": "^2.1",
"davejamesmiller/laravel-breadcrumbs": "^3.0",
"intervention/image": "^2.3",
"milon/barcode": "^5.3",
"h4cc/wkhtmltopdf-amd64": "0.12.x",
"barryvdh/laravel-snappy": "^0.3.3",
"brozot/laravel-fcm": "^1.2",
"yajra/laravel-datatables-oracle": "^6.0",
"jenssegers/agent": "^2.6",
"barryvdh/laravel-debugbar": "~2.4",
"caffeinated/menus": "v3.0.4",
"laravel-notification-channels/webpush": "^3.0.1",
"mongodb/mongodb": "^1.5",
"doctrine/mongodb-odm-bundle": "^3.4"
,
"require-dev":
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.0",
"symfony/css-selector": "3.1.*",
"laravel/passport": "^1.0",
"symfony/dom-crawler": "3.1.*",
"xethron/migrations-generator": "^2.0"
【问题讨论】:
【参考方案1】:由于我没有得到任何帮助,所以我开始扫描每一行代码,发现 laravel/framework": "5.3.*"
行有问题,我将其更改为 5.* 并运行 composer install,它就像一个魅力是的,它安装了 Laravel 5.3.8 版本
【讨论】:
以上是关于php artisan optimize NULL.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to unde的主要内容,如果未能解决你的问题,请参考以下文章
“php artisan ui vue --auth”命令和“php artisan ui:auth”有啥区别