Update Releases class, controllers and API responses

This commit is contained in:
DariusIII
2018-05-14 13:48:25 +02:00
parent 387e0fd452
commit df6f80b310
20 changed files with 665 additions and 576 deletions
+5 -3
View File
@@ -95,15 +95,17 @@ class BasePageController extends Controller
/**
* @param $query
* @param $totalcount
* @param $totalCount
* @param $items
* @param $page
* @param $path
* @param $reqQuery
*
* @return \Illuminate\Pagination\LengthAwarePaginator
*/
public function paginate($query, $totalcount, $items, $page, $path)
public function paginate($query, $totalCount, $items, $page, $path, $reqQuery)
{
return new LengthAwarePaginator($query, $totalcount, $items, $page, ['path' => $path]);
return new LengthAwarePaginator($query, $totalCount, $items, $page, ['path' => $path, 'query' => $reqQuery]);
}
/**