Skip to content

Commit

Permalink
meetup fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HolgerHatGarKeineNode committed Aug 24, 2023
1 parent 3a7f087 commit 2e0070b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/Http/Livewire/Profile/Meetups.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.'));
Expand Down

0 comments on commit 2e0070b

Please sign in to comment.