Added some test persons and member-states to the seeders.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Carbon\Carbon;
|
||||
|
||||
class TestMemberStatesTableSeeder extends Seeder
|
||||
{
|
||||
@@ -11,6 +12,28 @@ class TestMemberStatesTableSeeder extends Seeder
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
//
|
||||
DB::table('member_states')->insert([
|
||||
[
|
||||
'person_id' => 1,
|
||||
'joining_date' => '2014-9-22',
|
||||
'leaving_date' => '2014-12-31',
|
||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
||||
],
|
||||
[
|
||||
'person_id' => 1,
|
||||
'joining_date' => '2015-1-1',
|
||||
'leaving_date' => null,
|
||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
||||
],
|
||||
[
|
||||
'person_id' => 2,
|
||||
'joining_date' => '2014-9-22',
|
||||
'leaving_date' => null,
|
||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
||||
]
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user