public function paginate($perPage = 20)
    {
        $page = request()->get('page', 1);
        $path = request()->url();

        return new LengthAwarePaginator(
            $this->forPage($page, $perPage),
            $this->count(),
            $perPage,
            $page,
            compact('path')
        );
    }
public function paginate($perPage = 20)
    {
        $page = request()->get('page', 1);
        $path = request()->url();

        return new LengthAwarePaginator(
            $this->forPage($page, $perPage),
            $this->count(),
            $perPage,
            $page,
            compact('path')
        );
    }
public function paginate ( $ perPage = 20 ) { $ page = request ( ) -> get ( 'page' , 1 ) ; $ path = request ( ) -> url ( ) ; return new LengthAwarePaginator ( $ this -> forPage ( $ page , $ perPage ) , $ this -> count ( ) , $ perPage , $ page , compact ( 'path' ) ) ; }
Paginate log entries.

@param  int  $perPage

@return \Illuminate\Pagination\LengthAwarePaginator
Paginate log entries .