Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function store(Category $category, Path $path,$level,Task $task,Request $request)
- {
- Auth::loginUsingId(1);
- $this->validate($request ,[
- 'body' =>'required|max:5000',
- ]);
- $comment = $task->comments()->make([
- 'body' => $request->body
- ]);
- $request->user()->comments()->save($comment);
- return new CommentResource($comment);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement