email = $email; $this->error = $error; $this->setContact(); $this->setUser(); } public function setContact() { $contact = Contact::email($this->email)->enabled()->first(); if (empty($contact)) { return; } $this->contact = $contact; } public function setUser() { $user = User::email($this->email)->enabled()->first(); if (empty($user)) { return; } $this->user = $user; } }