title: Laravel 5 redirect with message
body: <p>Can someone explain why the code below does not work when it redirects to another page?</p>
  
  <pre><code>return redirect()-&gt;route('homepage')-&gt;with('message', 'I am so frustrated.');
  </code></pre>
  
  <p>The redirect works as expected, but the message does not appear.</p>
  
  <p>The view looks like:</p>
  
  <pre><code>@if ( session()-&gt;has('message') )
      &lt;div class="alert alert-success alert-dismissable"&gt;{{ session()-&gt;get('message') }}&lt;/div&gt;
  @endif
  </code></pre>
  
  <p>When I change it to:</p>
  
  <pre><code>return redirect()-&gt;route('contact')-&gt;with('message', 'I am so frustrated.');
  </code></pre>
  
  <p>, which is the same as <strong>redirect()->back()</strong>, everything works fine and the message is displayed. What is the difference between redirect <code>back()</code> and <code>to()</code> another view?</p>