src/Menu/MenuPermissionsFilter.php
protected function userHasAllPermissions(array $permissions)
    {
        if ( ! count($permissions)) {
            return true;
        }

        return ! count(
            array_filter($permissions, function ($permission) {
                return ! array_get($this->userPermissions, $permission);
            })
        );
    }
protected function userHasAllPermissions(array $permissions)
    {
        if ( ! count($permissions)) {
            return true;
        }

        return ! count(
            array_filter($permissions, function ($permission) {
                return ! array_get($this->userPermissions, $permission);
            })
        );
    }
protected function userHasAllPermissions ( array $ permissions ) { if ( ! count ( $ permissions ) ) { return true ; } return ! count ( array_filter ( $ permissions , function ( $ permission ) { return ! array_get ( $ this -> userPermissions , $ permission ) ; } ) ) ; }
Returns whether user has all of the given permissions.

@param string[] $permissions
@return bool
Returns whether user has all of the given permissions .