orWhere("email", "=", $username)->first(); if (is_null($user)) return null; return $user->toDbo(); } }