Added documentation for paginate's second optional argument.

Signed-off-by: Jakobud <jake.e.wilson@gmail.com>
This commit is contained in:
Jakobud 2012-07-23 15:50:04 -06:00
parent 1db67d47a3
commit 289c02ab47
1 changed files with 20 additions and 16 deletions

View File

@ -22,6 +22,10 @@ #### Pull the paginated results from the query:
$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): ?>