feat: user rating and comment

This commit is contained in:
2026-05-20 15:52:28 +03:30
parent 02448db346
commit d0d48866f0
7 changed files with 171 additions and 19 deletions
+5 -1
View File
@@ -25,7 +25,11 @@ class Media extends Model
'average_rating',
'user_rating',
'ratings_count',
'comments_count'
'comments_count',
'has_user_commented', // Add this
'user_comment', // Add this
'user_comment_id', // Add this
'has_user_rated' // Add this
];
public function image()
{