feat: user rating and comment
This commit is contained in:
@@ -43,7 +43,11 @@ public function tags(): BelongsToMany
|
||||
return $this->belongsToMany(Tag::class, 'music_tags');
|
||||
}
|
||||
|
||||
protected $appends = ['url', 'image_url' , 'average_rating', 'user_rating', 'comments_count'];
|
||||
protected $appends = ['url', 'image_url' , 'average_rating', 'user_rating', 'comments_count' , 'has_user_commented', // Add this
|
||||
'user_comment', // Add this
|
||||
'user_comment_id', // Add this
|
||||
'has_user_rated' // Add this];
|
||||
];
|
||||
|
||||
public function getUrlAttribute()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user