Laravel 5: redirect to an external link outside of localhost/server

前端 未结 4 1500
说谎
说谎 2021-01-17 08:46

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

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-17 08:51

    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().

提交回复
热议问题