belongsTo(CommonCode::class, 'category_id'); } public function boms() { return $this->hasMany(Bom::class); } }