Does LaravelS support Laravel 6.x? 是否支持Laravel 6.x?
zaoy opened this issue · 2 comments
-
Tell us your software version
How to know it?# PHP php -v # Swoole php --ri swoole # Laravel grep 'laravel/framework' composer.json # Lumen grep 'laravel/lumen-framework' composer.json
Software Version PHP TODO
Swoole TODO
Laravel/Lumen 6.x
-
Detail description about this issue(error/log)
TODO
-
Give us a
reproducible
code block andsteps
//TODO: Your code
Laravel 6
relies on ignition
, currently there will be compatibility issues Action Facade\Ignition\Http\Controllers\ShareReportController not defined., fundamentally, the reason is that Swoole
runs in cli
mode, and ignition
does [special processing](https://github.com/facade/ignition/blob/1.13.0/src/IgnitionServiceProvider.php # L135)) according to the running mode.
Configurable environment variable APP_RUNNING_IN_CONSOLE
to solve temporarily.
APP_RUNNING_IN_CONSOLE = false
Fixed Application: isRunningInConsole being cached
Laravel 6
依赖了ignition
,目前会出现兼容性问题Action Facade\Ignition\Http\Controllers\ShareReportController not defined.,根本原因是Swoole
运行在cli
模式下,而ignition
根据运行模式做了特殊处理。
可配置环境变量APP_RUNNING_IN_CONSOLE
来临时解决。
APP_RUNNING_IN_CONSOLE=false
Do not use APP_RUNNING_IN_CONSOLE=false
if you use Horizon for job management and monitoring. It will break it and it will not be able to spawn the supervisor process.