joanhey / AdapterMan

Run almost any PHP app faster and asynchronously with Workerman, without touch 1 line of code in your fw or app. Also use it as Serverless.
https://twitter.com/adaptermanphp
MIT License
692 stars 43 forks source link

post data can not be obtained, is something wrong? #74

Open dunkong opened 4 months ago

dunkong commented 4 months ago

Thanks to the author for providing this good project, which solved a big problem for me, but I couldn't get the post data during the use process, and there was no data in print request()->all(). I used laravel9, is there anything that needs special attention, thank you very much

joanhey commented 4 months ago

Please read https://github.com/joanhey/AdapterMan/issues/66#issuecomment-1913545482

Adapterman have a large set of tests, including POST data without problems. So the problem will be in the implementation used in Laravel.

If you still have problems after read the recommendations, please comment again here.

dunkong commented 4 months ago

Please read #66 (comment)

Adapterman have a large set of tests, including POST data without problems. So the problem will be in the implementation used in Laravel.

If you still have problems after read the recommendations, please comment again here.

Of course, I think this is a problem of my own use, not an AdapterMan problem, but I really can't find any reason for it, and I also see the same issue. I am very sorry if I have bothered you

joanhey commented 4 months ago

Please read: https://laravel.com/docs/10.x/octane#dependency-injection-and-octane

The same happens with Adapterman.

PD: Laravel will fix most of these problems in newer versions, but still the dev need to know these recommendations to avoid in the app code.