change code in some item

This commit is contained in:
2025-09-24 14:41:11 +03:30
parent f303c6c19c
commit ff616914ac
5 changed files with 55 additions and 22 deletions

View File

@@ -126,4 +126,18 @@ class Accident extends Model
get: fn ($value) => env("PAYMENT_LINK")."/#/pay/".explode("/", $this->bill_code)[0]."/{$this->final_amount}",
);
}
protected function depositInsuranceImage(): Attribute
{
return Attribute::make(
get: fn($value) => $value == null ? null : Storage::disk('public')->url($value)
);
}
protected function depositIdaghiImage(): Attribute
{
return Attribute::make(
get: fn($value) => $value == null ? null : Storage::disk('public')->url($value)
);
}
}