2019-11-18 18:33:29 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
class DatabaseSeeder extends Seeder
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Seed the application's database.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function run()
|
|
|
|
{
|
2019-11-30 21:32:42 +01:00
|
|
|
DB::table('users')->insert([
|
|
|
|
'name' => 'admin',
|
|
|
|
'surname' => 'main',
|
|
|
|
'email' => 'admin@admin.com',
|
|
|
|
'password' => bcrypt('pass1234'),
|
|
|
|
'is_Admin' => true
|
|
|
|
]);
|
2019-11-18 18:33:29 +01:00
|
|
|
}
|
|
|
|
}
|