order image files
This commit is contained in:
@@ -29,7 +29,7 @@ class DataTable
|
||||
array $allowedRelations = [],
|
||||
array $allowedSortings = [],
|
||||
array $allowedSelects = [],
|
||||
?array $allowedGroupBy = null
|
||||
array $allowedGroupBy = []
|
||||
): array
|
||||
{
|
||||
|
||||
|
||||
@@ -242,7 +242,7 @@ class RoadMaintenanceStationController extends Controller
|
||||
|
||||
public function images(RahdariPoint $rahdariPoint): JsonResponse
|
||||
{
|
||||
return $this->successResponse($rahdariPoint->files()->get(['path']));
|
||||
return $this->successResponse($rahdariPoint->files()->orderBy('id')->get(['path']));
|
||||
}
|
||||
|
||||
public function map(Request $request): JsonResponse
|
||||
|
||||
@@ -111,7 +111,7 @@ class SafetyAndPrivacyTableService
|
||||
public function provinceActivity(Request $request): array
|
||||
{
|
||||
$activities = [];
|
||||
$provinceQuery = Province::query()->selectRaw('COUNT(*) as qty,info_id, step');
|
||||
$provinceQuery = SafetyAndPrivacy::query()->selectRaw('COUNT(*) as qty,info_id, step');
|
||||
$province = DataTableFacade::run(
|
||||
$provinceQuery,
|
||||
$request,
|
||||
|
||||
Reference in New Issue
Block a user