From b4ee75da1451ec7edbb7301bddacb334ad57e1e2 Mon Sep 17 00:00:00 2001 From: HDVinnie Date: Wed, 25 Sep 2019 11:01:04 -0400 Subject: [PATCH] (Update) Comment Model :rocket: --- app/Models/Comment.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Models/Comment.php b/app/Models/Comment.php index d8b292932..2ddb89faa 100755 --- a/app/Models/Comment.php +++ b/app/Models/Comment.php @@ -76,6 +76,16 @@ class Comment extends Model return $this->belongsTo(TorrentRequest::class, 'requests_id', 'id'); } + /** + * Belongs To A Playlist. + * + * @return \Illuminate\Database\Eloquent\Relations\BelongsTo + */ + public function playlist() + { + return $this->belongsTo(Playlist::class); + } + /** * Belongs To A User. *