title: fade out animation for session flash message
body: <p>Is there any way to set up a flash message session for laravel?
  Which means when I click the button to add or delete item(s), the flash messages are displayed. But Is there any way to fade out?</p>
  
  <p>in view file I put the code below:-</p>
  
  <pre><code>  &lt;script&gt;
        $(document).ready(function(){
            setTimeout(function() {
                $('#msg').fadeOut('fast');
            }, 30000);
        });
    &lt;/script&gt;
  
    @if (session('status'))
        &lt;div class="alert alert-success"&gt;
            &lt;p class="msg"&gt; {{ session('status') }}&lt;/p&gt;
        &lt;/div&gt;
    @endif
  </code></pre>
  
  <p>Controller file which I used for return the message.  </p>
  
  <pre><code>return back()-&gt;with('status', $pro-&gt;pro_name . ' add to cart successfully');
  </code></pre>