/home/techb158/dev.balacoffee.com/app/Models
Edit: /home/techb158/dev.balacoffee.com/app/Models/Permission.php (657B)
belongsToMany(Role::class);
}
/**
* Determine if the permission belongs to the role.
*
* @param mixed $role
* @return boolean
*/
public function inRole($role)
{
if (is_string($role)) {
return $this->roles->contains('name', $role);
}
return !!$role->intersect($this->roles)->count();
}
}