Files
exchange-2.0/database/seeds/CurrenciesTableSeeder.php
T
CheeSiong 5940fd16b0 ListCurrencyLogicClass
Currency Converter Logic Class
2020-12-02 17:31:00 +08:00

39 lines
960 B
PHP

<?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Str;
class CurrenciesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('currencies')->insert([
[
'id' => 1,
'country_id' => 1,
'name' => 'Ringgit',
'short_code' => 'MYR',
'symbol' => 'RM',
'selling' => 1,
'created_at' => date('Y-m-d H:i:s'),
'updated_at' => date('Y-m-d H:i:s')
],
[
'id' => 2,
'country_id' => 2,
'name' => 'Renminbi',
'short_code' => 'RMB',
'symbol' => '¥',
'selling' => 0.62,
'created_at' => date('Y-m-d H:i:s'),
'updated_at' => date('Y-m-d H:i:s')
]
]);
}
}