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:
Lukas Halbritter
2018-09-11 17:11:46 +02:00
parent 003ff1435a
commit 5ec117e1af
2 changed files with 19 additions and 23 deletions
+3 -3
View File
@@ -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'));