Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/Modules/BasicPayment/database/seeders/BasicPaymentInfoSeeder.php
Назад
<?php namespace Modules\BasicPayment\database\seeders; use Illuminate\Database\Seeder; use Modules\BasicPayment\app\Models\BasicPayment; use Modules\Currency\app\Models\MultiCurrency; class BasicPaymentInfoSeeder extends Seeder { public function run(): void { $basic_payment_info = [ 'stripe_key' => 'stripe_key', 'stripe_secret' => 'sk_test_51JU61aF56Pb8BOOXlz7jGkzJsCkozuAoRlFJskYGsgunfaHLmcvKLubYRQLCQOuyYHq0mvjoBFLzV7d8F6q8f6Hv00CGwULEEV', 'stripe_currency_id' => MultiCurrency::where('currency_code', 'USD')->first()?->id, 'stripe_status' => 'active', 'stripe_charge' => 0.00, 'stripe_image' => 'uploads/website-images/stripe.png', 'paypal_app_id' => 'APP-80W284485P519543T', 'paypal_client_id' => 'paypal_client_id', 'paypal_secret_key' => 'paypal_secret_key', 'paypal_account_mode' => 'sandbox', 'paypal_currency_id' => MultiCurrency::where('currency_code', 'USD')->first()?->id, 'paypal_charge' => 0.00, 'paypal_status' => 'active', 'paypal_image' => 'uploads/website-images/paypal.png', 'bank_information' => "Bank Name => Your bank name\r\nAccount Number => Your bank account number\r\nRouting Number => Your bank routing number\r\nBranch => Your bank branch name", 'bank_status' => 'active', 'bank_image' => 'uploads/website-images/bank-pay.png', 'bank_charge' => 0.00, 'bank_currency_id' => MultiCurrency::where('currency_code', 'USD')->first()?->id, ]; foreach ($basic_payment_info as $index => $payment_item) { $new_item = new BasicPayment(); $new_item->key = $index; $new_item->value = $payment_item; $new_item->save(); } } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0.17 |
proxy
|
phpinfo
|
Настройка