This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* usage in a controlller: | |
* public function index($page=1) { | |
* $users = User::paginateUri(5, $page); | |
* return view('users', compact('users')); | |
* } | |
* it also support variable number of parameters, | |
* routes must be defined using {page} or {page?} placeholders | |
* $links is returned as reference and contain a standard bootstrap 3 navigation |