Add UsersTableSeeder
MODIFY
app/User.php
app/User.php
@@ -5,10 +5,11 @@ namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
-class User extends Authenticatable
-{
+class User extends Authenticatable {
use Notifiable;
+ public $timestamps = false;
+
/**
* The attributes that are mass assignable.
*

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

ADD
database/seeds/UsersTableSeeder.php
+<?php
+
+use Illuminate\Database\Seeder;
+
+use App\User;
+
+class UsersTableSeeder extends Seeder {
+ public function run() {
+ User::create([
+ 'currency_id' => 1,
+ 'name' => 'Sjaak',
+ 'email' => 'sjaak@blaaskaak.com',
+ 'password' => Hash::make('sjaak123')
+ ]);
+ }
+}

Add UsersTableSeeder