title: How to display a success message upon redirection from controller in Laravel?
body: <p>In my application I have a form that validates and inserts records into the table.</p>
  
  <p>Upon successful insertion into the table the controller <code>redirect()</code>s back to the page ass follows:</p>
  
  <pre><code>return redirect('/');
  </code></pre>
  
  <p>This works fine, except for the fact that it doesn't tell the user of whether the insertion took place at all or not as only the blank form remains on the page while no success message is displayed.</p>
  
  <p>How can I redirect along with data (some form of <code>return code</code>) so that I can display a simple success message?</p>