diff --git a/app/Http/Controllers/Frontend/ProfileController.php b/app/Http/Controllers/Frontend/ProfileController.php index 7864118..5e5fd57 100644 --- a/app/Http/Controllers/Frontend/ProfileController.php +++ b/app/Http/Controllers/Frontend/ProfileController.php @@ -177,7 +177,7 @@ class ProfileController extends Controller ]; Session::put('newEmail', $request->newEmail); Session::put('otp', $otp); - // Mail::to($request->newEmail)->send(new OtpMail($mailData,$otp)); + Mail::to($request->newEmail)->send(new OtpMail($mailData, $otp)); return response()->json([ 'status' => 200, 'message' => 'OTP sended on enter email', @@ -212,7 +212,7 @@ class ProfileController extends Controller $otp = rand(1000, 9999); Session::put('contact_number', $request->newcontact_number); Session::put('mobile_otp', $otp); - // $sendOTPMessage = (new sendOTP)->thirdPartyOTP($request->contact_number, $otp); + $sendOTPMessage = (new sendOTP)->thirdPartyOTP($request->contact_number, $otp); return response()->json([ 'status' => 200, 'message' => 'OTP sended to contact number',