title: How to get download file from Laravel 5.1 with AngularJS and ui-router
body: <p>I have this code in laravel for export excel:</p>
  
  <pre><code>public function export_excel(Request $request){      
      $user = user::all();
      Excel::create('user', function($excel) use($user) {
          $excel-&gt;sheet('Sheet 1', function($sheet) use($user) {
              $sheet-&gt;fromArray($user);
          });
      })-&gt;download('xls');
  }
  </code></pre>
  
  <p>and my route is:</p>
  
  <pre><code>Route::get('user/export/excel','UserController@export_excel');
  </code></pre>
  
  <p>and my html is:</p>
  
  <pre><code>&lt;a&gt;&lt;i class="fa fa-file-excel-o"&gt;&lt;/i&gt; Export to Excel&lt;/a&gt;
  </code></pre>
  
  <p>I want to send request from REST API with <code>Restangular</code> and after that get download file.</p>