From 84e37d39e211c152f52d0da35247287805c34fd7 Mon Sep 17 00:00:00 2001 From: basemkhirat Date: Sun, 19 Feb 2017 21:36:03 +0200 Subject: [PATCH] fix pagination for laravel 5.1 --- src/Pagination.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/Pagination.php b/src/Pagination.php index a20a34e..8d84bbf 100644 --- a/src/Pagination.php +++ b/src/Pagination.php @@ -16,19 +16,6 @@ class Pagination extends LengthAwarePaginator */ public function links($view = "default", $data = []) { - return $this->render($view, $data); - } - - /** - * Render the paginator using the given view. - * - * @param string $view - * @param array $data - * @return string - */ - public function render($view = "default", $data = []) - { - extract($data); $paginator = $this; @@ -36,7 +23,6 @@ public function render($view = "default", $data = []) $elements = $this->elements(); require dirname(__FILE__) . "/pagination/" . $view . ".php"; - } }