cache responces achyklar
This commit is contained in:
parent
240bd58a40
commit
17976581ef
|
|
@ -68,9 +68,9 @@ class Brands extends \Webkul\RestApi\Http\Controllers\V1\Shop\ResourceController
|
||||||
return $query->orderBy('position', 'desc')->orderBy('name', 'asc');
|
return $query->orderBy('position', 'desc')->orderBy('name', 'asc');
|
||||||
});
|
});
|
||||||
|
|
||||||
$query->whereHas('flats', function($q){
|
// $query->whereHas('flats', function($q){
|
||||||
$q->where('status',1);
|
// $q->where('status',1);
|
||||||
});
|
// });
|
||||||
|
|
||||||
if (is_null($request->input('pagination')) || $request->input('pagination')) {
|
if (is_null($request->input('pagination')) || $request->input('pagination')) {
|
||||||
$results = $query->paginate($request->input('limit') ?? 10);
|
$results = $query->paginate($request->input('limit') ?? 10);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue