belongsTo(Order::class); } public function unitPrices() { return $this->belongsToMany(UnitPrice::class, 'budget_plan_prices') ->withPivot('id', 'price', 'qty', 'subtotal', 'images'); } }