Laravel 4.2 has the option to specify a custom view in app/config/view.php
such as:
/*
|--------------------------------------------------------------------------
| Pagination View
|--------------------------------------------------------------------------
|
| This view will be used to render the pagination link output, and can
| be easily customized here to show any view you like. A clean view
| compatible with Twitter's Bootstrap is given to you by default.
|
*/
'pagination' => 'pagination_slider-alt'
This is gone in Laravel 5 at least regarding view.php
.
Is there a way to replicate this behavior in Laravel 5?
Whereas in Laravel 4.2 I would use:
In Laravel 5 you can replicate the above with the following:
Now in the included view,
$object
will have the pagination methods available, such ascurrentPage()
,lastPage()
,perPage()
, etc.You can view all methods available at http://laravel.com/docs/5.0/pagination