private function getPaginator()
    {
        $perPage = 40;
        $page = input('page', 1);
        $itemsObj = $this->fetchEntries();
        $items = $itemsObj['items'];
        $total = $itemsObj['total'];
        $baseUrl = config('app.url') . "/admin/accounts/clients";

        // paginator
        $paginator = new LengthAwarePaginator($items->forPage($page, $perPage), count($items),
            $perPage, $page, ['path' => $baseUrl, 'originalEntries' => $total]);

        return $paginator;
    }
private function getPaginator()
    {
        $perPage = 40;
        $page = input('page', 1);
        $itemsObj = $this->fetchEntries();
        $items = $itemsObj['items'];
        $total = $itemsObj['total'];
        $baseUrl = config('app.url') . "/admin/accounts/clients";

        // paginator
        $paginator = new LengthAwarePaginator($items->forPage($page, $perPage), count($items),
            $perPage, $page, ['path' => $baseUrl, 'originalEntries' => $total]);

        return $paginator;
    }
private function getPaginator ( ) { $ perPage = 40 ; $ page = input ( 'page' , 1 ) ; $ itemsObj = $ this -> fetchEntries ( ) ; $ items = $ itemsObj [ 'items' ] ; $ total = $ itemsObj [ 'total' ] ; $ baseUrl = config ( 'app.url' ) . "/admin/accounts/clients" ; // paginator $ paginator = new LengthAwarePaginator ( $ items -> forPage ( $ page , $ perPage ) , count ( $ items ) , $ perPage , $ page , [ 'path' => $ baseUrl , 'originalEntries' => $ total ] ) ; return $ paginator ; }
Fetch the client paginator
@return LengthAwarePaginator
Fetch the client paginator