feat: add routes, model, controller and update related models relations

This commit is contained in:
2026-08-18 16:49:35 +03:30
parent bc2b71c313
commit b1caa3fbfd
7 changed files with 102 additions and 1 deletions
+4
View File
@@ -108,4 +108,8 @@ class User extends Authenticate
{
return $this->hasMany(Comment::class, 'user_id');
}
public function favorites()
{
return $this->hasMany(Favorite::class);
}
}