title: Redirect back with flash message for the layout template
body: <p>In my controller I have a function to login a user.</p>
  
  <p>In case the login was successful I can simply use <code>return Redirect::back()</code>.</p>
  
  <p>My problem starts when the credentials are incorrect and I want to redirect with a flash message. </p>
  
  <p>I know I can chain the <code>with</code> method to the Redirect, but that would send the data to the specific view, and NOT to the layout, where the login HTML lies.</p>
  
  <p>I could load a view like so:</p>
  
  <pre><code>$this-&gt;layout
       -&gt;with('flash',$message)
       -&gt;content = View::make('index');
  </code></pre>
  
  <p>But I need to redirect back to the referring page.</p>
  
  <p>Is it possible to redirect while passing data to the layout?</p>