Start building API v2

This commit is contained in:
DariusIII
2018-06-01 01:06:08 +02:00
parent 4850685b8f
commit 44b98a44c7
5 changed files with 64 additions and 12 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ class BasePageController extends Controller
*
* @return \Illuminate\Pagination\LengthAwarePaginator
*/
public function paginate($query, $totalCount, $items, $page, $path, $reqQuery)
public function paginate($query, $totalCount, $items, $page, $path, $reqQuery): LengthAwarePaginator
{
return new LengthAwarePaginator($query, $totalCount, $items, $page, ['path' => $path, 'query' => $reqQuery]);
}