From 407af48b648b97e9fcd4d57e8360d3b3c6e8b735 Mon Sep 17 00:00:00 2001 From: Isern Palaus Date: Fri, 24 Jan 2014 03:08:42 +0100 Subject: [PATCH] Corrected the var name. --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5da5270f..c637d746 100755 --- a/README.md +++ b/README.md @@ -219,17 +219,17 @@ use Acme\Transformer\BookTransformer; use League\Fractal\Cursor\Cursor; use League\Fractal\Resource\Collection; -$users = new Book; +$books = new Book; if ($current = Input::get('cursor', false)) { - $users = $users->where('id', '>', $current); + $books = $books->where('id', '>', $current); } -$users = $users->take(5)->get(); +$books = $books->take(5)->get(); -$cursor = new Cursor($current, $users->last()->id, $users->count()); +$cursor = new Cursor($current, $books->last()->id, $books->count()); -$resource = new Collection($users, new BookTransformer); +$resource = new Collection($books, new BookTransformer); $resource->setCursor($cursor); ```