When I use Redirect::to($url) , this is the result:
Redirect::to($url)
http://localhost/http://mysite.com/foo/bar.html
But when I use Redirect::to('http://google.com') , it approaches Google just fine, can I assume that my problem?
Redirect::to('http://google.com')
You need to provide a fully qualified URL for the Redirect::to() method, otherwise the application URL is added.
Redirect::to()
$url = 'www.google.com'; // redirects to http://localhost:8888/www.google.com return Redirect::to($url); $url = 'http://google.com'; // redirects to http://google.com return Redirect::to($url);
To redirect to an external domain, use the full URL, for example tiqeet.com
in your controller, call return Redirect :: intended ("your full domain");
hope this works for you. Used in laravel 4.0
Source: https://habr.com/ru/post/1500444/More articles:CSS: Automatically change the color of a certain character? - cssList Python groups by date - pythonWhat Schema.org property should I use to list articles with popular posts? - schema.orgIs there a way to execute jQuery similar to window.eval () in JavaScript? - javascriptRunning before returning with WinDbg - windbgRoute execution (controller / action) using PHP CLI and CLI request discovery - command-line-interfaceHow to optimize CSS delivery - optimizationHow to expand basic activity in Android? - androidConvert Xaml to html5 - html5Docker: Container launch failed: unable to load AUFS module - dockerAll Articles