Files
pollux/database/seeds/data/test/TestPeopleTableSeeder.php
T

45 lines
1.4 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' => 'Ma-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')
]
]);
}
}