Ejemplo n.º 1
0
 /**
  * Verify a company is owned by a user.
  *
  * @param User $user
  * @param Company $company
  *
  * @return mixed
  */
 public function hasCompany(User $user, Company $company)
 {
     return !$user->companies()->where('id', $company->id)->get()->isEmpty();
 }