public function hasPermissionForUser($user, ...$permission)
    {
        $params = [];

        $params[] = $user;
        foreach ($permission as $perm) {
            $params[] = $perm;
        }

        return $this->hasPolicy($params);
    }
public function hasPermissionForUser($user, ...$permission)
    {
        $params = [];

        $params[] = $user;
        foreach ($permission as $perm) {
            $params[] = $perm;
        }

        return $this->hasPolicy($params);
    }
public function hasPermissionForUser ( $ user , ... $ permission ) { $ params = [ ] ; $ params [ ] = $ user ; foreach ( $ permission as $ perm ) { $ params [ ] = $ perm ; } return $ this -> hasPolicy ( $ params ) ; }
determines whether a user has a permission.

@param string $user
@param string ...$permission

@return bool
determines whether a user has a permission .