year)) { $attributes->year = year(); } }); } /** * @return BelongsTo */ public function product(): BelongsTo { return $this->belongsTo(Product::class, 'product_id', 'id'); } /** * @return BelongsTo */ public function order(): BelongsTo { return $this->belongsTo(Order::class, 'order_id', 'id'); } /** * @return BelongsTo */ public function maf_order(): BelongsTo { return $this->belongsTo(MafOrder::class, 'maf_order_id', 'id'); } }