title: Laravel 5: redirect to an external link outside of localhost/server
body: <p>I want to build an app with laravel 5 &amp; 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 button.
  I tried different methods but I couldn`t make it work.</p>
  
  <pre><code>public function start(){
          session(['user_id'=&gt;1]);
          $dKey = 'key';
          $dSecret = 'secret';
          $appName = 'app';
  
          $appInfo = new Dropbox\AppInfo($dKey,$dSecret);
  
          //store csrf token
          $tokenStore = new  Dropbox\ArrayEntryStore($_SESSION,'dropbox-auth-csrf-token');
          //define auth details
          $this-&gt;webAuth = new Dropbox\WebAuth($appInfo,$appName,'http://localhost:8000/dropbox/finish',$tokenStore);
          $this-&gt;checkSession();
      }
  
      public function checkSession(){
          $users = User::where('id','=',session('user_id'))-&gt;get();
  
          if(isset($user[0]-&gt;dropbox_token)){
  
          }
          else{
              $url = $this-&gt;webAuth-&gt;start();
  
              //return Redirect::to($url);
              //return Redirect::away($url);
              //header('Location : '.$url);
          }
  
      }
  </code></pre>
  
  <p>The link in $url exists and its valid.</p>
  
  <p>These(last 3 commented methods) are the methods i tried , including return redirect($url),is it possible to do this or am i wasting my time with this ?please help me out.</p>