예제 #1
0
 /**
  * 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();
 }
 /**
  * Handle the repo event.
  *
  * @param \StyleCI\StyleCI\Events\Repo\RepoEventInterface $event
  *
  * @return void
  */
 public function handle(RepoEventInterface $event)
 {
     $this->collaborators->flush($event->repo);
 }