Add comments to Hentai
This commit is contained in:
@@ -36,6 +36,11 @@ class Hentai extends Model implements Sitemapable
|
||||
return $this->episodes->first()->title;
|
||||
}
|
||||
|
||||
public function comments()
|
||||
{
|
||||
return $this->morphMany(Comment::class, 'commentable');
|
||||
}
|
||||
|
||||
/**
|
||||
* Has a Gallery.
|
||||
*/
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
@include('series.partials.episodes')
|
||||
|
||||
@include('series.partials.comments')
|
||||
<livewire:comments :model="$hentai"/>
|
||||
</div>
|
||||
|
||||
@include('series.partials.popular')
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user