/** * Find a user by their activation code. * * @param $code * @return null|UserInterface */ public function findByActivationCode($code) { return $this->model->where('activation_code', $code)->first(); }