Added show function to the PeopleController.
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
|
||||
use App\Person;
|
||||
|
||||
|
||||
@@ -17,6 +19,11 @@ class PeopleController extends Controller
|
||||
|
||||
public function show(Person $person)
|
||||
{
|
||||
return view('people.show', compact('person'));
|
||||
$memberStates = $person->getMemberStates();
|
||||
$targets = $person->getTargets();
|
||||
$actuals = $person->getActuals();
|
||||
|
||||
return view('people.show', compact('person', 'memberStates', 'targets',
|
||||
'actuals'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user