atcheck/database/seeds/UsersTableSeeder.php

31 lines
664 B
PHP
Raw Normal View History

2019-12-01 23:36:12 +01:00
<?php
use Illuminate\Database\Seeder;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('users')->insert([
'name' => 'admin',
'surname' => 'main',
'email' => 'admin@admin.com',
'password' => bcrypt('pass1234'),
'is_Admin' => true
]);
DB::table('users')->insert([
'name' => 'Jan ',
'surname' => 'Kowalski',
'email' => 'jan@kowalski.com',
'password' => bcrypt('pass1234'),
'is_Admin' => false
]);
}
}