Should I use prepareForValidation of FormRequest to passing params for validation request?

后端 未结 0 986
后悔当初
后悔当初 2021-01-03 06:55

I want to pass user_id and post_id to formRequest. So I use prepareForValidation to merge to the request like that done in the code below. Is that way ok or I should be pass

相关标签:
回答
  • 消灭零回复
提交回复
热议问题