group()->associate(Group::find($_POST['groupId'])); $vote->points += 1; if(!empty($_POST['comment'])){ $vote->comment = $_POST['comment']; } $vote->save(); }