mirror of
https://gitlab.com/omair-personal/exchange.git
synced 2026-08-19 04:24:08 +00:00
28 lines
679 B
PHP
28 lines
679 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use App\SettingMalaysiaBank;
|
|
use App\SettingBeneficiary;
|
|
|
|
class SettingActiveBankSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
$bankx1 = SettingMalaysiaBank::find(1);
|
|
$bankx2 = SettingMalaysiaBank::find(2);
|
|
$chinabank = SettingBeneficiary::where('acc_no', "=" ,'123456789')->first();
|
|
|
|
DB::table('setting_active_banks')->truncate();
|
|
DB::table('setting_active_banks')->insert([
|
|
'x1_bank_id' => $bankx1->id,
|
|
'x2_bank_id' => $bankx2->id,
|
|
'beneficiary_id' => $chinabank->id
|
|
]);
|
|
}
|
|
}
|