wip
This commit is contained in:
@@ -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 [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user