src/Traits/HasRoleAndPermission.php
public function hasOnePermission($permission)
    {
        foreach ($this->getArrayFrom($permission) as $permission) {
            if ($this->checkPermission($permission)) {
                return true;
            }
        }

        return false;
    }
public function hasOnePermission($permission)
    {
        foreach ($this->getArrayFrom($permission) as $permission) {
            if ($this->checkPermission($permission)) {
                return true;
            }
        }

        return false;
    }
public function hasOnePermission ( $ permission ) { foreach ( $ this -> getArrayFrom ( $ permission ) as $ permission ) { if ( $ this -> checkPermission ( $ permission ) ) { return true ; } } return false ; }
Check if the user has at least one of the given permissions.

@param int|string|array $permission

@return bool
Check if the user has at least one of the given permissions .