mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 12:24:09 +00:00
59fc234ea0
added index booking with user marking added turncate marking when seeding added turncate settingmalaysiabank when seeding added marking to user seeder
44 lines
1.2 KiB
PHP
44 lines
1.2 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Carbon\Carbon;
|
|
use App\User;
|
|
use App\Rate;
|
|
|
|
class BookTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
$user = User::where("email", "user@example.com")->first();
|
|
$rate = Rate::all()->last();
|
|
|
|
DB::table('bookings')->insert([
|
|
'account_name' => 'milah',
|
|
'account_num' => '99898',
|
|
'bank_name' => 'maybank',
|
|
'bank_branch' => 'rembau',
|
|
'company_name' => 'ICEF',
|
|
'company_address' => 'selangor',
|
|
'bank_address' => 'cyber',
|
|
'swift_code' => 'qwe123',
|
|
'cnap' => '123asd',
|
|
'term' => 'x1_cash',
|
|
'amount' => 200,
|
|
'rmb_book_amount' => 200,
|
|
'bia' => 189,
|
|
'rate' => 1.2,
|
|
'rate_id' => $rate->id,
|
|
'user_id' => $user->id,
|
|
'status' => 2,
|
|
'admin_status' => 2,
|
|
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
|
'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
|
]);
|
|
}
|
|
}
|