private function bootPaginator()
    {
        Paginator::currentPathResolver(function () {
            return url();
        });

        Paginator::currentPageResolver(function ($pageName = 'page') {
            return request()->input($pageName);
        });
    }