Edit File: TagShow.php
<?php namespace App\Livewire\Show; use App\Models\Tag; use Livewire\Component; use Livewire\Attributes\Layout; class TagShow extends Component { public $tag; public function mount($slug) { $this->tag = Tag::with("animes")->where('slug', $slug)->first(); } #[Layout("layouts.guest")] public function render() { return view('livewire.show.tag-show', [ 'animes' => $this->tag->animes()->paginate(24), ]); } }
Back