/** * Find all users marked as collaborators to the provided repo. * * @param \StyleCI\StyleCI\Models\Repo $repo * * @return \Illuminate\Database\Eloquent\Collection */ public function collaborators(Repo $repo) { return User::whereIn('id', $this->collaborators->get($repo))->get(); }