Implement dark mode, bug report page, and schema dump
This commit is contained in:
@@ -144,7 +144,7 @@ class MembershipPayment extends Model
|
||||
{
|
||||
return match($this->payment_method) {
|
||||
self::METHOD_BANK_TRANSFER => '銀行轉帳',
|
||||
self::METHOD_CONVENIENCE_STORE => '便利商店繳費',
|
||||
self::METHOD_CONVENIENCE_STORE => '超商繳費',
|
||||
self::METHOD_CASH => '現金',
|
||||
self::METHOD_CREDIT_CARD => '信用卡',
|
||||
default => $this->payment_method ?? '未指定',
|
||||
@@ -157,10 +157,9 @@ class MembershipPayment extends Model
|
||||
parent::boot();
|
||||
|
||||
static::deleting(function ($payment) {
|
||||
if ($payment->receipt_path && Storage::exists($payment->receipt_path)) {
|
||||
Storage::delete($payment->receipt_path);
|
||||
if ($payment->receipt_path && Storage::disk('private')->exists($payment->receipt_path)) {
|
||||
Storage::disk('private')->delete($payment->receipt_path);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user