I am trying to send one time password to a user using SMS INDIA HUB API. For that purpose I need to redirect to a URL format:
http://cloud.smsindiahub.in/vendorsms/pushs
For Laravel 5.x / 6.x / 7.x use:
return redirect()->away('https://www.google.com');
as stated in the docs:
Sometimes you may need to redirect to a domain outside of your application. You may do so by calling the away method, which creates a RedirectResponse without any additional URL encoding, validation, or verification: