'integer', 'sample' => 'integer', 'original_outside_sample' => 'integer', ]; } public function getActivitylogOptions(): LogOptions { return LogOptions::defaults() ->logAll() ->logOnlyDirty() ->dontLogEmptyChanges(); } protected function formattedCuttingResult(): Attribute { return Attribute::make( get: fn () => number_format($this->cutting_result, 0, ',', '.'), ); } protected function formattedOriginalOutsideSample(): Attribute { return Attribute::make( get: fn () => number_format($this->original_outside_sample, 0, ',', '.'), ); } protected function formattedSample(): Attribute { return Attribute::make( get: fn () => number_format($this->sample, 0, ',', '.'), ); } public function cutting(): BelongsTo { return $this->belongsTo(Cutting::class); } public function user(): BelongsTo { return $this->belongsTo(User::class); } }