feat: add user deletion functionality and fix known issues
This commit is contained in:
1 parent
66f91908ce
commit
9ed588bd93
10 files changed
+125
-43
No files matched your search
@@ -42,6 +42,16 @@ class User extends Authenticatable
|
||||
return $this->hasMany(InviteCode::class, 'user_id', 'id');
|
||||
}
|
||||
|
||||
public function orders()
|
||||
{
|
||||
return $this->hasMany(Order::class, 'user_id', 'id');
|
||||
}
|
||||
|
||||
public function stat()
|
||||
{
|
||||
return $this->hasMany(StatUser::class, 'user_id', 'id');
|
||||
}
|
||||
|
||||
// 关联工单列表
|
||||
public function tickets()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user