자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
private function linkToCurrentUser(Comment $comment) { $user = Auth::user(); if ($user) { $comment->createdBy()->associate($user)->save(); } return $comment; }