belongsTo(Product::class); } public function factorItems() { return $this->hasMany(FactorItems::class)->orderBy("myindex"); } }