hasMany(Node::class, 'location_id'); } public function os() { return $this->hasMany(OS::class); } }