Skip to content

Commit

Permalink
fix pagination for laravel 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
basemkhirat committed Feb 19, 2017
1 parent 9fe4836 commit 84e37d3
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,13 @@ 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;

$elements = $this->elements();

require dirname(__FILE__) . "/pagination/" . $view . ".php";

}

}

0 comments on commit 84e37d3

Please sign in to comment.