code: public function hasRoleWithPermission($permission)
      {
          return $this->roles->contains(function ($role) use ($permission) {
              return $role->getPermissions->contains('permission_slug', $permission);
          });
      }
docs: Determine if any of the assigned roles to this user
  have a specific permission
  
  @param string $permission
  @return boolean