title: Loading a view with laravel Excel
body: <p>I'm trying to export a view in laravel, using </p>
  
  <p><a href="https://github.com/Maatwebsite/Laravel-Excel" rel="nofollow noreferrer">https://github.com/Maatwebsite/Laravel-Excel</a></p>
  
  <p>The problems is that I'm getting this error with my css file <code>"file_get_contents(/css/all.css): failed to open stream: No such file or directory"</code> It could not find my file when I press the button to export, but if I don't my page loads normally, once i had this same problem and i just had to go one folder back to access to my files, but it didnt work this time</p>
  
  <p>this is my code in my controller</p>
  
  <pre><code>    public function exportar($empresa_id, $id)
      {
          $empresa = Empresa::where('id', $empresa_id)-&gt;first();
          $transferencia = $empresa-&gt;transferencias()-&gt;where('transferencia_id', $id)-&gt;first();
          $destino = Empresa::where('nombre', $transferencia-&gt;destino)-&gt;first();
          Excel::create('New file', function ($excel) use ($empresa, $transferencia, $destino) {
  
              $excel-&gt;sheet('New sheet', function ($sheet) use ($empresa, $transferencia, $destino) {
  
                  $sheet-&gt;loadView('acciones/imprimirTransferencia', array('empresa' =&gt; $empresa, 'transferencia' =&gt; $transferencia, 'destino' =&gt; $destino));
  
              });
  
          })-&gt;export('xls');
  
      }
  </code></pre>
  
  <p>My css link</p>
  
  <pre><code>  &lt;link href="{{ mix('/css/all.css') }}" rel="stylesheet" type="text/css"/&gt;
  </code></pre>
  
  <p>My button</p>
  
  <pre><code>  &lt;a href="{{url('exportar/transferencia/'.$empresa-&gt;id.'/'.$transferencia-&gt;id)}}" id="exportar_excel" class="btn btn-success pull-right"&gt; Generar PDF                
   &lt;/a&gt;
  </code></pre>