diff --git a/app/Models/Company.php b/app/Models/Company.php index 4ef00640..bd137a4a 100644 --- a/app/Models/Company.php +++ b/app/Models/Company.php @@ -1,6 +1,7 @@ morphMany(Address::class, 'owner'); } + /** + * @return belongsToMany + */ + public function companyModule(): hasMany + { + return $this->hasMany(CompanyModule::class); + } + /** * @return belongsToMany */