Channel
This commit is contained in:
@@ -20,7 +20,7 @@ class CollectionController extends Controller
|
||||
{
|
||||
return response()->rest(
|
||||
CollectionResource::collection(
|
||||
Collection::with('media')->where('is_visible', true)->ordered()->get()
|
||||
Collection::query()->with('media')->where('is_visible', true)->inRandomOrder()->get()
|
||||
)
|
||||
);
|
||||
}
|
||||
@@ -34,7 +34,7 @@ class CollectionController extends Controller
|
||||
|
||||
return response()->rest_paginate(
|
||||
CollectionResource::collection(
|
||||
Collection::with('media')->where('is_visible', true)->ordered()->simplePaginate($perPage)
|
||||
Collection::query()->with('media')->where('is_visible', true)->inRandomOrder()->simplePaginate($perPage)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user