diff --git a/app/Models/Manufacturer.php b/app/Models/Manufacturer.php index 27919726a309..232d2a61d7d3 100755 --- a/app/Models/Manufacturer.php +++ b/app/Models/Manufacturer.php @@ -47,6 +47,11 @@ public function assets() return $this->hasManyThrough('\App\Models\Asset', '\App\Models\AssetModel', 'manufacturer_id', 'model_id'); } + public function models() + { + return $this->hasMany('\App\Models\AssetModel', 'manufacturer_id'); + } + public function licenses() { return $this->hasMany('\App\Models\License', 'manufacturer_id');