manoos manoos - 3 months ago 25
PHP Question

Redirect to external URL with return in laravel

I am trying to send one time password to user using SMS INDIA HUB api.
For that purpose I need to redirect to a url format:

If we load this url, it will return some message. I need to get that message to.

I tired like this

$url = "";

return Redirect::intended($url);

But it is not directing to that link. It tries to load that url in localhost.

Or is there any plugin to send sms using SMS INDIA HUB?

Can anyone help??


You should be able to redirect to the url like this

return Redirect::to($url);

You can read about Redirects in the Laravel docs here.