belongsTo(Customer::class)->withTrashed(); } public function items() { return $this->hasMany(SaleItem::class); } public function formatedDate(): Attribute { return Attribute::make( get: function () { return Carbon::parse($this->date)->format('d/m/Y'); } ); } }