6
0
Fork 0
release
panliang 2022-06-02 10:03:30 +08:00
parent ae8b23a9cc
commit 283f4510e1
1 changed files with 5 additions and 0 deletions

View File

@ -24,4 +24,9 @@ class Agent extends Model
{
return $this->hasMany(User::class, 'agent_id');
}
public function hasUser()
{
return $this->users()->exists();
}
}