diff options
Diffstat (limited to 'database/seeds/DatabaseSeeder.php')
-rw-r--r-- | database/seeds/DatabaseSeeder.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.php index 91cb6d1..db0f2fd 100644 --- a/database/seeds/DatabaseSeeder.php +++ b/database/seeds/DatabaseSeeder.php @@ -1,6 +1,7 @@ <?php use Illuminate\Database\Seeder; +use Illuminate\Support\Facades\DB; class DatabaseSeeder extends Seeder { @@ -11,6 +12,19 @@ class DatabaseSeeder extends Seeder */ public function run() { - // $this->call(UsersTableSeeder::class); + DB::table('users')->insert([ + 'id' => 0, + 'name' => 'genesis', + 'email' => ' ', + 'password' => ' ', + 'hash' => bcrypt('genesis') + ]); + + DB::table('users')->insert([ + 'name' => 'Marvin Borner', + 'email' => 'marvin@borners.de', + 'password' => bcrypt('password'), + 'hash' => bcrypt(bcrypt('genesis') . 'Marvin Borner'. 'marvin@borners.de'. 'password') // hashing: prev hash, all fields in current 'block' + ]); } } |