src/Jackiedo/LogReader/LogReader.php
public function paginate($perPage = 25, $currentPage = null, array $options = [])
    {
        $currentPage = $this->getPageFromInput($currentPage, $options);
        $offset      = ($currentPage - 1) * $perPage;
        $total       = $this->count();
        $entries     = $this->get()->slice($offset, $perPage)->all();

        return new LengthAwarePaginator($entries, $total, $perPage, $currentPage, $options);
    }
public function paginate($perPage = 25, $currentPage = null, array $options = [])
    {
        $currentPage = $this->getPageFromInput($currentPage, $options);
        $offset      = ($currentPage - 1) * $perPage;
        $total       = $this->count();
        $entries     = $this->get()->slice($offset, $perPage)->all();

        return new LengthAwarePaginator($entries, $total, $perPage, $currentPage, $options);
    }
public function paginate ( $ perPage = 25 , $ currentPage = null , array $ options = [ ] ) { $ currentPage = $ this -> getPageFromInput ( $ currentPage , $ options ) ; $ offset = ( $ currentPage - 1 ) * $ perPage ; $ total = $ this -> count ( ) ; $ entries = $ this -> get ( ) -> slice ( $ offset , $ perPage ) -> all ( ) ; return new LengthAwarePaginator ( $ entries , $ total , $ perPage , $ currentPage , $ options ) ; }
Paginates the returned log entries.

@param  int    $perPage
@param  int    $currentPage
@param  array  $options  [path => '', query => [], fragment => '', pageName => '']

@return mixed
Paginates the returned log entries .