firstOrFail(); $otpService->resendOtp($user, $type); return [ 'email' => $user->email ]; } }