osb/database/seeders/CurrencyTableSeeder.php

27 lines
399 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';
$o->symbol = '$';
$o->iso_code = 'AUD';
$o->rounding = 2;
$o->active = TRUE;
$o->save();
}
}