40 lines
1.1 KiB
PHP
40 lines
1.1 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Carbon\Carbon;
|
|
|
|
class TestMemberStatesTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
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')
|
|
]
|
|
]);
|
|
}
|
|
}
|