31 lines
664 B
PHP
31 lines
664 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' => 'Jan ',
|
|
'surname' => 'Kowalski',
|
|
'email' => 'jan@kowalski.com',
|
|
'password' => bcrypt('pass1234'),
|
|
'is_Admin' => false
|
|
]);
|
|
}
|
|
}
|