gpt4 book ai didi

laravel - 如何解决Facade\Ignition\Http\Middleware\IgnitionEnabled?

转载 作者:行者123 更新时间:2023-12-03 13:50:54 24 4
gpt4 key购买 nike

----------------------------------------------------------------------------------+
| Domain | Method | URI | Name | Action | Middleware
|
+--------+----------+----------------------------+------------------+------------------------------------------------------------------------+--------------------------------------------------
----------------------------------------------------------------------------------+
| | GET|HEAD | / | | Closure | web
|
| | POST | _ignition/execute-solution | | Facade\Ignition\Http\Controllers\ExecuteSolutionController | Facade\Ignition\Http\Middleware\IgnitionEnabled,F
acade\Ignition\Http\Middleware\IgnitionConfigValueEnabled:enableRunnableSolutions |
| | GET|HEAD | _ignition/health-check | | Facade\Ignition\Http\Controllers\HealthCheckController | Facade\Ignition\Http\Middleware\IgnitionEnabled
|
| | GET|HEAD | _ignition/scripts/{script} | | Facade\Ignition\Http\Controllers\ScriptController | Facade\Ignition\Http\Middleware\IgnitionEnabled
|
| | POST | _ignition/share-report | | Facade\Ignition\Http\Controllers\ShareReportController | Facade\Ignition\Http\Middleware\IgnitionEnabled,F
acade\Ignition\Http\Middleware\IgnitionConfigValueEnabled:enableShareButton |
| | GET|HEAD | _ignition/styles/{style} | | Facade\Ignition\Http\Controllers\StyleController | Facade\Ignition\Http\Middleware\IgnitionEnabled

最佳答案

这不是问题,这些是Laravel 6 新的调试包Facade/Ignition 的路径。

它们是必需的,因此 Laravel 可以在错误发生时向您显示

所以就忽略它们

但是,如果您想删除这些路由(不推荐),您可以从 composer.json 中删除此行。

 "require-dev": {
"facade/ignition": "^1.4", <--- Remove this one
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^3.0",
"phpunit/phpunit": "^8.0"
},

并运行
composer update

但是,您将不会看到自定义错误页面,而是会看到默认的 PHP7 错误表和堆栈跟踪。

您仍然可以获得旧包 filp/whoops通过安装它
composer require filp/whoops

关于laravel - 如何解决Facade\Ignition\Http\Middleware\IgnitionEnabled?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58249085/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com