title: Session Flash Not Working
body: <p>I have a form that runs this controller code;</p>
  
  <pre><code>public function index()
  {
  
      $date = date("Ymd");
  
      $temp_table = new TempTable;
      $generated_temp_table = $_POST['generated_temp_table'];
      $temp_table_data = $temp_table-&gt;setTempTable($generated_temp_table)-&gt;newQuery()-&gt;with('payment')-&gt;get();
  
      $payments = [];
  
      foreach($temp_table_data as $a_payment) {
          array_push($payments, $a_payment-&gt;payment-&gt;first()-&gt;attributesToArray());
      }
  
      //then create the Excel file
      Excel::create($date.'-SME_Payments_Export-U', function($excel) use ($payments) {
  
          $excel-&gt;sheet('Excel sheet', function($sheet) use ($payments) {
              $sheet-&gt;setOrientation('landscape');
              $sheet-&gt;fromArray($payments);
          });
      })-&gt;export('csv');
  
      \Session::flash('flash_message', 'Your CSV is downloading');
  
      Redirect::back();
  
  }
  </code></pre>
  
  <p>The <code>flash</code> message isn't being shown. Here is the view code;</p>
  
  <pre><code>@if(Session::has('flash_message'))
      &lt;div class="alert alert-success {{Session::has('flast_message_important') ? 'alert-important' : ''}}"&gt;
          @if(Session::has('flash_message_important'))
              &lt;button type="button" class="close" data-dismiss="alert" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;
          @endif
          {{ session('flash_message')}}
      &lt;/div&gt;
  @endif
  </code></pre>
  
  <p>I have included the <code>use Session;</code> at the top of both controllers. Here it is in the config/app.php;</p>
  
  <pre><code>'Session'   =&gt; 'Illuminate\Support\Facades\Session',
  </code></pre>
  
  <p>Is there more to it than what I am trying here?</p>