| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 9 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 35 | public function store(StoreComment $request, JobPoster $jobPoster)  | 
            ||
| 36 |     { | 
            ||
| 37 | $data = $request->validated();  | 
            ||
| 38 | $comment = new Comment();  | 
            ||
| 39 | $comment->user_id = $request->user()->id;  | 
            ||
| 40 | $comment->job_poster_id = $jobPoster->id;  | 
            ||
| 41 | $comment->fill($data);  | 
            ||
| 42 | $comment->save();  | 
            ||
| 43 | return response()->json(new JsonResource($comment));  | 
            ||
| 44 | }  | 
            ||
| 46 |