Closed nanwenbo closed 3 years ago
Are you using the "web" middleware in your route?
web
Yes, I used web middleware This error doesn't happen every time I found that if there are several parameter validation errors, it will appear
I solve this problem. When the first request of the swoole initialization process, if the parameter verification error is reported, then the startsession Middleware in middleware groups will not be executed next time, and the startsession will not be re executed in the next request, so the value in the session will not be retrieved. Move the startsession middleware to the middleware group
Make sure you read Issues Guideline and answer these questions before submitting your issue. Thanks! (Any non-English issues will be closed immediately.)
Please provide your PHP and Swoole version. (
php -v
andphp --ri swoole
) php7.2.9 swoole 4.4.16Please provide your Laravel/Lumen version.
Laravel v5.6
laravel-swoole v2.6.67