src/PaginateRoute.php
public function currentPage()
    {
        $currentRoute = $this->router->getCurrentRoute();

        if (! $currentRoute) {
            return 1;
        }

        $query = $currentRoute->parameter('pageQuery');

        return (int) str_replace($this->pageKeyword.'/', '', $query) ?: 1;
    }
public function currentPage()
    {
        $currentRoute = $this->router->getCurrentRoute();

        if (! $currentRoute) {
            return 1;
        }

        $query = $currentRoute->parameter('pageQuery');

        return (int) str_replace($this->pageKeyword.'/', '', $query) ?: 1;
    }
public function currentPage ( ) { $ currentRoute = $ this -> router -> getCurrentRoute ( ) ; if ( ! $ currentRoute ) { return 1 ; } $ query = $ currentRoute -> parameter ( 'pageQuery' ) ; return ( int ) str_replace ( $ this -> pageKeyword . '/' , '' , $ query ) ? : 1 ; }
Return the current page.

@return int
Return the current page .