NASER add settings to me api
This commit is contained in:
@@ -119,5 +119,19 @@ class Customer extends Authenticatable implements JWTSubject
|
||||
return $this->hasMany(Tahesab::class, 'customer_id', 'id');
|
||||
}
|
||||
|
||||
public function customer_settings()
|
||||
{
|
||||
return $this->hasMany(CustomersSetting::class, 'agent_id');
|
||||
}
|
||||
|
||||
public function package()
|
||||
{
|
||||
return $this->belongsTo(Package::class);
|
||||
}
|
||||
|
||||
public function agent()
|
||||
{
|
||||
return $this->belongsTo(Customer::class, 'agent_id');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user