Skip to content

Commit

Permalink
feat!: Change rel=>manufacturer to rel=>manufacturer_id
Browse files Browse the repository at this point in the history
  • Loading branch information
3m1n3nc3 committed Jan 6, 2025
1 parent 6d4889f commit c52ab36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Resources/Vehicles/VehicleResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function toArray(Request $request): array
"rel" => [
"year_id" => $this->year->id,
"country_id" => $this->country->id,
"manufacturer" => $this->model->manufacturer?->id,
"manufacturer_id" => $this->model->manufacturer?->id,
],
'miles_per_gallon' => $this->whenLoaded('mileage', fn() => $this->mileage->miles_per_gallon),
"createdAt" => $this->created_at,
Expand Down

0 comments on commit c52ab36

Please sign in to comment.