39 lines
909 B
PHP
39 lines
909 B
PHP
|
<?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' => 'Krzysztof',
|
||
|
'surname' => 'Jassem',
|
||
|
'email' => 'krzysztof@jassem.com',
|
||
|
'password' => bcrypt('pass1234'),
|
||
|
'is_Admin' => false
|
||
|
]);
|
||
|
|
||
|
DB::table('users')->insert([
|
||
|
'name' => 'Jan ',
|
||
|
'surname' => 'Kowalski',
|
||
|
'email' => 'jan@kowalski.com',
|
||
|
'password' => bcrypt('pass1234'),
|
||
|
'is_Admin' => false
|
||
|
]);
|
||
|
}
|
||
|
}
|