53 lines
1.4 KiB
PHP
53 lines
1.4 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class UserSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table('users')->insert([
|
|
'title' => 'Dr.',
|
|
'firstname' => 'Max',
|
|
'lastname' => 'Mustermann',
|
|
'street' => 'Sesamstraße 36',
|
|
'location' => '1234 Musterort',
|
|
'phone' => '+436501258654',
|
|
'email' => 'test@test.at',
|
|
'password' => bcrypt("testtest"),
|
|
'admin' => true
|
|
]);
|
|
|
|
DB::table('users')->insert([
|
|
'title' => 'Mag.',
|
|
'firstname' => 'Jula',
|
|
'lastname' => 'Musterfrau',
|
|
'street' => 'Sesamstraße 45',
|
|
'location' => '4588 Ort',
|
|
'phone' => '+436645896521',
|
|
'email' => 'test2@test.at',
|
|
'password' => bcrypt("testtest"),
|
|
'admin' => false
|
|
]);
|
|
|
|
|
|
DB::table('users')->insert([
|
|
'title' => 'Mag.',
|
|
'firstname' => 'Theresia',
|
|
'lastname' => 'Mayer',
|
|
'street' => 'Sesamstraße 45',
|
|
'location' => '4588 Ort',
|
|
'phone' => '+436645896521',
|
|
'email' => 'old@mail.at',
|
|
'resetPw' => '1',
|
|
'password' => bcrypt("testtest"),
|
|
'admin' => false
|
|
]);
|
|
}
|
|
}
|