58 lines
1.9 KiB
PHP
58 lines
1.9 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Carbon\Carbon;
|
|
|
|
class TestPeopleTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table('people')->insert([
|
|
[
|
|
'title' => 'Herr',
|
|
'name_or_company' => 'Halbritter',
|
|
'surname' => 'Lukas',
|
|
'street' => 'Stefan-Meier-Straße 63',
|
|
'postal_code' => '79104',
|
|
'city' => 'Freiburg',
|
|
'email' => 'halbi93@gmx.de',
|
|
'mobile' => '0174 / 78 14 6 97',
|
|
'date_of_birth' => '1993-05-27',
|
|
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
|
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
|
],
|
|
[
|
|
'title' => 'Frau',
|
|
'name_or_company' => 'Strobel',
|
|
'surname' => 'Max-Brit',
|
|
'street' => 'Haslacher Straße 79',
|
|
'postal_code' => '79106',
|
|
'city' => 'Freiburg',
|
|
'email' => 'majbrit.strobel@googlemail.de',
|
|
'mobile' => null,
|
|
'date_of_birth' => '1992-01-14',
|
|
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
|
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
|
],
|
|
[
|
|
'title' => 'Herr',
|
|
'name_or_company' => 'Mustermann',
|
|
'surname' => 'Max',
|
|
'street' => 'Musterstraße 1234',
|
|
'postal_code' => '12345',
|
|
'city' => 'Musterstad',
|
|
'email' => 'max@mustermann.de',
|
|
'mobile' => null,
|
|
'date_of_birth' => '1990-07-03',
|
|
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
|
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
|
]
|
|
]);
|
|
}
|
|
}
|