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. *