@@ -21,22 +21,22 @@ |
||
| 21 | 21 | public function create() |
| 22 | 22 | { |
| 23 | 23 | return $this->form |
| 24 | - ->value('personList', Family::personList() ) |
|
| 25 | - ->options('father_id', Person::all()) |
|
| 26 | - ->options('mother_id', Person::all()) |
|
| 27 | - ->options('type_id', Type::all()) |
|
| 28 | - ->create(); |
|
| 24 | + ->value('personList', Family::personList() ) |
|
| 25 | + ->options('father_id', Person::all()) |
|
| 26 | + ->options('mother_id', Person::all()) |
|
| 27 | + ->options('type_id', Type::all()) |
|
| 28 | + ->create(); |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | public function edit(Family $family) |
| 32 | 32 | { |
| 33 | 33 | return $this->form |
| 34 | - ->value('personList', Family::personList() ) |
|
| 35 | - ->options('father_id', Person::all()) |
|
| 36 | - ->options('mother_id', Person::all()) |
|
| 37 | - ->options('type_id', Type::all()) |
|
| 34 | + ->value('personList', Family::personList() ) |
|
| 35 | + ->options('father_id', Person::all()) |
|
| 36 | + ->options('mother_id', Person::all()) |
|
| 37 | + ->options('type_id', Type::all()) |
|
| 38 | 38 | ->append('family_id', $family->id) |
| 39 | - ->create(); |
|
| 39 | + ->create(); |
|
| 40 | 40 | |
| 41 | 41 | } |
| 42 | 42 | } |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | public function create() |
| 22 | 22 | { |
| 23 | 23 | return $this->form |
| 24 | - ->value('personList', Family::personList() ) |
|
| 24 | + ->value('personList', Family::personList()) |
|
| 25 | 25 | ->options('father_id', Person::all()) |
| 26 | 26 | ->options('mother_id', Person::all()) |
| 27 | 27 | ->options('type_id', Type::all()) |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | public function edit(Family $family) |
| 32 | 32 | { |
| 33 | 33 | return $this->form |
| 34 | - ->value('personList', Family::personList() ) |
|
| 34 | + ->value('personList', Family::personList()) |
|
| 35 | 35 | ->options('father_id', Person::all()) |
| 36 | 36 | ->options('mother_id', Person::all()) |
| 37 | 37 | ->options('type_id', Type::all()) |