This commit is contained in:
2025-11-16 16:31:16 +05:00
parent c1b3a58c3a
commit 5a37d56cfb
2 changed files with 21 additions and 21 deletions

View File

@@ -25,9 +25,7 @@ class PayVisaMasterPaymentAction
->schema(function () { ->schema(function () {
$usd_to_tmt = floatval(CurrencyRate::where('currency_from', 'USD')->where('currency_to', 'TMT')->first('value')?->value); $usd_to_tmt = floatval(CurrencyRate::where('currency_from', 'USD')->where('currency_to', 'TMT')->first('value')?->value);
$payment_warning_text = VisaMasterSettings::where('name', 'payment_warning_text')->first(); if (! $usd_to_tmt) {
if (! $usd_to_tmt || ! $payment_warning_text) {
return []; return [];
} }

View File

@@ -8,6 +8,7 @@ return new class extends Migration
{ {
public function up(): void public function up(): void
{ {
if (! Schema::hasTable('media')) {
Schema::create('media', function (Blueprint $table) { Schema::create('media', function (Blueprint $table) {
$table->id(); $table->id();
@@ -29,4 +30,5 @@ return new class extends Migration
$table->nullableTimestamps(); $table->nullableTimestamps();
}); });
} }
}
}; };