mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
meetup fix
This commit is contained in:
@@ -110,7 +110,19 @@ class Meetups extends Component
|
||||
$this->myMeetupNames = auth()
|
||||
->user()
|
||||
->meetups()
|
||||
->pluck('meetups.name', 'meetups.id')
|
||||
->with([
|
||||
'city.country'
|
||||
])
|
||||
->select('meetups.id', 'meetups.city_id', 'meetups.name', 'meetups.slug')
|
||||
->get()
|
||||
->map(fn($meetup) => [
|
||||
'id' => $meetup->id,
|
||||
'name' => $meetup->name,
|
||||
'link' => route('meetup.landing', [
|
||||
'country' => $meetup->city->country->code,
|
||||
'meetup' => $meetup,
|
||||
])
|
||||
])
|
||||
->toArray();
|
||||
$this->notification()
|
||||
->success(__('Saved.'));
|
||||
|
||||
Reference in New Issue
Block a user