title: Laravel 4 - Redirect with flash message not working
body: <p>In my Laravel 4 project, I am trying to set a flash message when redirecting, like so:</p>
  
  <pre><code>return Redirect::route('main')-&gt;with('flash', 'Message here.');
  </code></pre>
  
  <p>(I looked at the following: <a href="https://stackoverflow.com/questions/18727693/laravel-4-redirectroute-with-parameters">Laravel 4 - Redirect::route with parameters</a>).</p>
  
  <p>The redirect happens properly.  In my 'main' view I've got this code to display the flash message:</p>
  
  <pre><code>@if (Session::has('flash'))
    &lt;div class="flash alert"&gt;
      &lt;p&gt;{{ Session::get('flash') }}&lt;/p&gt;
    &lt;/div&gt;
  @endif
  </code></pre>
  
  <p>But it doesn't work: <code>Session::get('flash')</code> returns an array, not a string. If I insert a call to <code>var_dump(Session::get('flash'))</code>, I get this output:</p>
  
  <pre><code>array (size=2)
    'new' =&gt; 
      array (size=0)
        empty
    'old' =&gt; 
      array (size=1)
        0 =&gt; string 'flash' (length=5)
  </code></pre>
  
  <p>What is happening?  It seems like fairly straightforward code...</p>