feat: new xboard

This commit is contained in:
xboard
2025-01-21 14:57:54 +08:00
parent de18cfe596
commit 0f43fff242
373 changed files with 17923 additions and 20264 deletions
+9
View File
@@ -21,6 +21,15 @@ class Ticket extends Model
self::STATUS_CLOSED => '关闭'
];
public function user()
{
return $this->belongsTo(User::class, 'user_id', 'id');
}
public function messages()
{
return $this->hasMany(TicketMessage::class, 'ticket_id', 'id');
}
// 即将删除
public function message()
{
return $this->hasMany(TicketMessage::class, 'ticket_id', 'id');