public function __construct($person = null) { $this->person = $person; if ($this->person !== null && (is_int($this->person) || ctype_digit($this->person))) { $this->person = PersonFacade::find($this->person); } }
public function __construct(Request $request) { $this->request = $request; $this->editPerson = Person::find($this->request->route()->getParameter('id')); }