src/Illuminate/Clover/Paginator.php
public function getCurrentPage($total = null)
    {
        $page = abs(app()->request->get('page', 1));

        if ($total) {
            $this->total = $total;
        }

        $page >= 1 || $page = 1;

        if ($this->items) {
            $totalPage = $this->getTotalPage();
            $page <= $totalPage || $page = $totalPage;
        }

        return $page;
    }
public function getCurrentPage($total = null)
    {
        $page = abs(app()->request->get('page', 1));

        if ($total) {
            $this->total = $total;
        }

        $page >= 1 || $page = 1;

        if ($this->items) {
            $totalPage = $this->getTotalPage();
            $page <= $totalPage || $page = $totalPage;
        }

        return $page;
    }
public function getCurrentPage ( $ total = null ) { $ page = abs ( app ( ) -> request -> get ( 'page' , 1 ) ) ; if ( $ total ) { $ this -> total = $ total ; } $ page >= 1 || $ page = 1 ; if ( $ this -> items ) { $ totalPage = $ this -> getTotalPage ( ) ; $ page <= $ totalPage || $ page = $ totalPage ; } return $ page ; }
Return current page

@return integer
Return current page