Save logged in user's id to database when I have $request->all()

前端 未结 0 947
花落未央
花落未央 2020-12-02 12:28

I want to save new post from form in my database , I have title and body in $request and want to save logged in user\'s id in the post. how can i handle it in model or valid

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