in Postman the Body tab is suppose to be used for POST method. When I used Params tab to specify my request parameter and it got accepted.
how to accept only Form Body request instead of Parameters in POST method?
I used this package in my Request file https://github.com/pearlkrishn/lumen-request-validate
When you use Post method for API, you should pass param in Body tab and use dd($request->all())
to get params
By default whether you use body or params to pass values to Laravel, you can get them through request()->all()
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.