agent
parent
ae8b23a9cc
commit
283f4510e1
|
|
@ -24,4 +24,9 @@ class Agent extends Model
|
|||
{
|
||||
return $this->hasMany(User::class, 'agent_id');
|
||||
}
|
||||
|
||||
public function hasUser()
|
||||
{
|
||||
return $this->users()->exists();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue