mirror of
https://gitlab.com/omair-personal/exchange.git
synced 2026-08-19 12:34:13 +00:00
38 lines
935 B
PHP
38 lines
935 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Carbon\Carbon;
|
|
|
|
class RateTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table('rates')->insert([
|
|
'x1_cash' => 1.2,
|
|
'x1_cheque' => 1.2,
|
|
'x1_ba' => 1.2,
|
|
'x2_cash' => 1.2,
|
|
'x2_cheque' => 1.2,
|
|
'x2_ba' => 1.2,
|
|
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
|
'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
|
]);
|
|
|
|
DB::table('rates')->insert([
|
|
'x1_cash' => 1.3,
|
|
'x1_cheque' => 1.3,
|
|
'x1_ba' => 1.3,
|
|
'x2_cash' => 1.3,
|
|
'x2_cheque' => 1.3,
|
|
'x2_ba' => 1.3,
|
|
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
|
'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
|
]);
|
|
}
|
|
}
|