Added person factory.
Fixed missing comma in TestProjectsTableSeeder.
This commit is contained in:
@@ -12,46 +12,6 @@ class TestPeopleTableSeeder extends Seeder
|
||||
*/
|
||||
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')
|
||||
]
|
||||
]);
|
||||
factory(App\Person::class, 100)->create();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user