diff --git a/src/Http/Livewire/Tags.php b/src/Http/Livewire/Tags.php index 71a32de..cc1a3cc 100644 --- a/src/Http/Livewire/Tags.php +++ b/src/Http/Livewire/Tags.php @@ -16,6 +16,8 @@ public function mount($type, $slug) $this->type = $type; $this->slug = $slug; $this->tag = Tag::findBySlug($slug, $type); + + abort_if($this->tag === null, 404); } public function render()