feat: Add venue description to Venue API and update form view (#72ea2ba)

In the VenueController, the Venue API now includes a description of the venue
by concatenating the city name and street. This change is reflected in the
'bitcoin-event-form' view where the 'option-description' attribute now uses the
venue's description instead of the city name.
This commit is contained in:
HolgerHatGarKeineNode
2024-01-29 18:44:46 +01:00
parent 72ea2ba783
commit bb5b7ddd4e
2 changed files with 21 additions and 20 deletions

View File

@@ -34,6 +34,7 @@ class VenueController extends Controller
->get()
->map(function (Venue $venue) {
$venue->flag = asset('vendor/blade-country-flags/4x3-' . $venue->city->country->code . '.svg');
$venue->description = $venue->city->name . ', ' . $venue->street;
return $venue;
});

View File

@@ -79,7 +79,7 @@
]"
option-label="name"
option-value="id"
option-description="city.name"
option-description="description"
/>
</x-input.group>