Доработка апи
parent
33ddc91e79
commit
3a9b1d35a6
|
|
@ -234,10 +234,11 @@ class MobileApiController extends Controller
|
|||
$tariffs_new = [];
|
||||
foreach ($tariffs as $tariff) {
|
||||
$tariffs_new[] = [
|
||||
'name' => $tariff?->name,
|
||||
'price' => $tariff?->base_rate,
|
||||
'min' => $tariff?->day_range_start,
|
||||
'max' => $tariff?->day_range_end,
|
||||
'name' => $tariff?->name,
|
||||
'price' => $tariff?->base_rate,
|
||||
'min' => $tariff?->day_range_start,
|
||||
'max' => $tariff?->day_range_end,
|
||||
'deposit' => $tariff?->deposit,
|
||||
];
|
||||
}
|
||||
$carsByColor = $cars->groupBy('color_id');
|
||||
|
|
|
|||
Loading…
Reference in New Issue