Update DB seeding to Laravel 8
This commit is contained in:
27
database/seeders/CurrencyTableSeeder.php
Normal file
27
database/seeders/CurrencyTableSeeder.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
use App\Models\Currency;
|
||||
|
||||
class CurrencyTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$o = new Currency;
|
||||
$o->id = 610;
|
||||
$o->name = 'Australian Dollars';
|
||||
$o->symbol = '$';
|
||||
$o->iso_code = 'AUD';
|
||||
$o->rounding = 2;
|
||||
$o->active = TRUE;
|
||||
$o->save();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user