src/Http/Controllers/PageAPIController.php
public function setRepository()
    {
        $this->repository = app()->make(PageRepositoryInterface::class);
        $this->repository
            ->pushCriteria(\Litepie\Repository\Criteria\RequestCriteria::class)
            ->pushCriteria(\Litecms\Page\Repositories\Criteria\PageResourceCriteria::class);
    }
public function setRepository()
    {
        $this->repository = app()->make(PageRepositoryInterface::class);
        $this->repository
            ->pushCriteria(\Litepie\Repository\Criteria\RequestCriteria::class)
            ->pushCriteria(\Litecms\Page\Repositories\Criteria\PageResourceCriteria::class);
    }
public function setRepository ( ) { $ this -> repository = app ( ) -> make ( PageRepositoryInterface :: class ) ; $ this -> repository -> pushCriteria ( \ Litepie \ Repository \ Criteria \ RequestCriteria :: class ) -> pushCriteria ( \ Litecms \ Page \ Repositories \ Criteria \ PageResourceCriteria :: class ) ; }
Initialize page resource controller.

@param type PageRepositoryInterface $page

@return null
Initialize page resource controller .