diff --git a/app/Http/Livewire/Profile/Meetups.php b/app/Http/Livewire/Profile/Meetups.php index 655ea1ac..9ccf4456 100644 --- a/app/Http/Livewire/Profile/Meetups.php +++ b/app/Http/Livewire/Profile/Meetups.php @@ -110,7 +110,19 @@ public function signUpForMeetup($id) $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.'));