Add comments to Hentai

This commit is contained in:
2026-01-10 18:54:48 +01:00
parent 871028930b
commit 7810cd53fb
3 changed files with 6 additions and 9 deletions

View File

@@ -36,6 +36,11 @@ class Hentai extends Model implements Sitemapable
return $this->episodes->first()->title; return $this->episodes->first()->title;
} }
public function comments()
{
return $this->morphMany(Comment::class, 'commentable');
}
/** /**
* Has a Gallery. * Has a Gallery.
*/ */

View File

@@ -16,7 +16,7 @@
@include('series.partials.episodes') @include('series.partials.episodes')
@include('series.partials.comments') <livewire:comments :model="$hentai"/>
</div> </div>
@include('series.partials.popular') @include('series.partials.popular')

View File

@@ -1,8 +0,0 @@
<div class="bg-transparent rounded-lg overflow-hidden bg-white dark:bg-neutral-800 p-5">
<div id="comments" class="grid grid-cols-1 bg-transparent rounded-lg">
<p class="leading-normal font-bold text-lg text-rose-600">
{{ __('home.latest-comments') }}
</p>
{{--@comments(['model' => $hentai])--}}
</div>
</div>