Changed functions in Person model such that they return a Relation instead of an
Eloquent collection and adjusted the PersonController accordingly.
This commit is contained in:
@@ -19,9 +19,9 @@ class PeopleController extends Controller
|
||||
|
||||
public function show(Person $person)
|
||||
{
|
||||
$memberStates = $person->getMemberStates();
|
||||
$targets = $person->getTargets();
|
||||
$actuals = $person->getActuals();
|
||||
$memberStates = $person->memberStates;
|
||||
$targets = $person->targets;
|
||||
$actuals = $person->actuals;
|
||||
|
||||
return view('people.show', compact('person', 'memberStates', 'targets',
|
||||
'actuals'));
|
||||
|
||||
Reference in New Issue
Block a user