Skip to content

Commit 1723b09

Browse files
author
robindrost
authored
Update README.md
1 parent 086cbd1 commit 1723b09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ class MyController extends Controller
7777
{
7878
$models = MyModel::paginate(50);
7979
80-
return [
80+
return response()->json([
8181
'results_size' => $models->total(),
82-
'results' => $models->getCollection()->toArray(),
83-
];
82+
'results' => $models->getCollection(),
83+
]);
8484
}
8585
}
8686
```

0 commit comments

Comments
 (0)