osb/database/seeders/CurrencyTableSeeder.php

27 lines
394 B
PHP
Raw Normal View History

<?php
2021-06-30 01:06:20 +00:00
namespace Database\Seeders;
use Illuminate\Database\Seeder;
2018-06-18 11:51:20 +00:00
use App\Models\Currency;
class CurrencyTableSeeder extends Seeder
{
2018-06-18 11:51:20 +00:00
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$o = new Currency;
$o->id = 6;
2018-06-18 11:51:20 +00:00
$o->name = 'Australian Dollars';
2022-02-01 09:15:11 +00:00
$o->active = TRUE;
2018-06-18 11:51:20 +00:00
$o->symbol = '$';
2022-02-01 09:15:11 +00:00
$o->iso = 'AUD';
2018-06-18 11:51:20 +00:00
$o->rounding = 2;
$o->save();
}
}