Add CurrenciesTableSeeder
ADD
database/seeds/CurrenciesTableSeeder.php
+<?php
+
+use Illuminate\Database\Seeder;
+
+use App\Currency;
+
+class CurrenciesTableSeeder extends Seeder {
+ public function run() {
+ Currency::create([
+ 'name' => 'Euro',
+ 'symbol' => '&eur;'
+ ]);
+ }
+}

MODIFY
database/seeds/DatabaseSeeder.php
database/seeds/DatabaseSeeder.php
use Illuminate\Database\Seeder;
-class DatabaseSeeder extends Seeder
-{
- /**
- * Run the database seeds.
- *
- * @return void
- */
- public function run()
- {
- // $this->call(UsersTableSeeder::class);
+class DatabaseSeeder extends Seeder {
+ public function run() {
+ $this->call(CurrenciesTableSeeder::class);
}
}

Add CurrenciesTableSeeder