Whereas in Laravel 4.2 I would use:
{{ $users->links('view.name') }}
In Laravel 5 you can replicate the above with the following:
@include('view.name', ['object' => $users])
Now in the included view, $object
will have the pagination methods available, such as currentPage()
, lastPage()
, perPage()
, etc.
You can view all methods available at http://laravel.com/docs/5.0/pagination