You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
user_center/app/Http/Resources/CarModel.php

43 lines
1.4 KiB

<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class CarModel extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
return [
'id' => $this->id,
'car_series_id' => $this->car_series_id,
'name' => $this->name,
'year' => $this->year,
'modelYears' => $this->modelYears,
'vehicle_type' => $this->vehicle_type,
'vehicle_size' => $this->vehicle_size,
'engine_model' => $this->engine_model,
'emission_standard' => $this->emission_standard,
'displacement' => $this->displacement,
'induction' => $this->induction,
'fuel_type' => $this->fuel_type,
'transmission_type' => $this->transmission_type,
'transmission_description' => $this->transmission_description,
'gear_number' => $this->gear_number,
'front_tyre' => $this->front_tyre,
'rear_tyre' => $this->rear_tyre,
'doors' => $this->doors,
'seats' => $this->seats,
'tuhu_code' => $this->tuhu_code,
'guidance_price' => $this->guidance_price,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
];
}
}