'array', 'score' => 'integer', 'is_anonymous' => 'boolean', 'status' => 'integer', ]; /** * 获取评价的标签 */ public function tags() { return $this->belongsToMany(CoachCommentTag::class, 'coach_order_comment_tags', 'comment_id', 'tag_id') ->withTimestamps(); } /** * 获取评价的用户 */ public function user() { return $this->belongsTo(MemberUser::class, 'user_id'); } /** * 获取评价的技师 */ public function coach() { return $this->belongsTo(CoachUser::class, 'coach_id'); } /** * 获取评价的订单 */ public function order() { return $this->belongsTo(Order::class, 'order_id'); } }