[WIP] Claims

This commit is contained in:
R
2022-12-13 12:47:12 +07:00
parent 23468df422
commit 6a4447a549
17 changed files with 192 additions and 9 deletions

View File

@@ -94,6 +94,11 @@ class Corporate extends Model
return $this->hasManyThrough(CorporateService::class, Service::class, 'corporate_id', 'service_code', 'id', 'service_code');
}
// public function claims()
// {
// return $this->hasManyThrough()
// }
public function corporateServices()
{
return $this->hasMany(CorporateService::class, 'corporate_id');