I want to build an app with laravel 5 & dropbox API in which I want the API allow/cancel-warning to be displayed when you land on the homepage, not when you click a butt
This code works for me:
return redirect()->away('https://www.dropbox.com');
Make sure you also add a return (i.e. return $this->checkSession();
) in start()
.
Below code will work
return redirect()->away('http://www.paypal.com');
And this will also work.
return redirect('http://www.paypal.com');
For https and such use the following
return redirect()->to($refererUrl);
Can do this,
use Redirect;
return Redirect::to('your url');
Or just,
return \Redirect::to('your url');