private function getFilters()
    {
        $filters = new Collection;

        foreach ($this->getCachedPermissionGroups() as $group) {
            /** @var  \Arcanesoft\Auth\Models\PermissionsGroup  $group */
            $filters->push([
                'name'   => $group->name,
                'params' => [$group->hashed_id],
            ]);
        }

        // Custom Permission group
        //----------------------------------
        if (Permission::where('group_id', 0)->count()) {
            $filters->push([
                'name'   => trans('auth::permission-groups.custom'),
                'params' => [hasher()->encode(0)],
            ]);
        }

        return $filters;
    }
private function getFilters()
    {
        $filters = new Collection;

        foreach ($this->getCachedPermissionGroups() as $group) {
            /** @var  \Arcanesoft\Auth\Models\PermissionsGroup  $group */
            $filters->push([
                'name'   => $group->name,
                'params' => [$group->hashed_id],
            ]);
        }

        // Custom Permission group
        //----------------------------------
        if (Permission::where('group_id', 0)->count()) {
            $filters->push([
                'name'   => trans('auth::permission-groups.custom'),
                'params' => [hasher()->encode(0)],
            ]);
        }

        return $filters;
    }
private function getFilters ( ) { $ filters = new Collection ; foreach ( $ this -> getCachedPermissionGroups ( ) as $ group ) { /** @var  \Arcanesoft\Auth\Models\PermissionsGroup  $group */ $ filters -> push ( [ 'name' => $ group -> name , 'params' => [ $ group -> hashed_id ] , ] ) ; } // Custom Permission group //---------------------------------- if ( Permission :: where ( 'group_id' , 0 ) -> count ( ) ) { $ filters -> push ( [ 'name' => trans ( 'auth::permission-groups.custom' ) , 'params' => [ hasher ( ) -> encode ( 0 ) ] , ] ) ; } return $ filters ; }
Get the groups filters data.

@return \Illuminate\Support\Collection
Get the groups filters data .