From d9eb467d80d3421600a8c3de5a737c804160ef31 Mon Sep 17 00:00:00 2001 From: Benjamin Takats Date: Tue, 17 Jan 2023 20:15:55 +0100 Subject: [PATCH] direct links --- app/Http/Livewire/Profile/Meetups.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Livewire/Profile/Meetups.php b/app/Http/Livewire/Profile/Meetups.php index c70efdca..037fae4d 100644 --- a/app/Http/Livewire/Profile/Meetups.php +++ b/app/Http/Livewire/Profile/Meetups.php @@ -25,6 +25,10 @@ class Meetups extends Component public function mount() { + if (!auth()->user()) { + return to_route('auth.ln'); + } + $this->meetups = Meetup::query() ->where('name', 'ilike', '%'.$this->search.'%') ->orderBy('name')