Commit c27614b2 authored by Dayle Rees's avatar Dayle Rees

Merge pull request #996 from Jakobud/feature/pagination-docs

Added documentation for paginate's second optional argument.
parents f7e7fa62 289c02ab
......@@ -22,6 +22,10 @@ Let's walk through a complete example of paginating using the [Fluent Query Buil
$orders = DB::table('orders')->paginate($per_page);
You can also pass an optional array of table columns to select in the query:
$orders = DB::table('orders')->paginate($per_page, array('id', 'name', 'created_at'));
#### Display the results in a view:
<?php foreach ($orders->results as $order): ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment