[WIP] Claims

This commit is contained in:
R
2022-11-25 05:14:40 +07:00
parent d5b43d9896
commit b3eb9b5f9d
18 changed files with 1012 additions and 376 deletions

View File

@@ -82,6 +82,11 @@ class Corporate extends Model
return $this->morphMany(ImportLog::class, 'importable');
}
public function limitJournals()
{
return $this->morphMany(LimitJournal::class, 'journalable');
}
public function services()
{
return $this->hasManyThrough(CorporateService::class, Service::class, 'corporate_id', 'service_code', 'id', 'service_code');