title: Laravel session Flash Message Not working
body: <p>Session message is not working i tried this code and many fix available online 
  Here id my store function `</p>
  
  <pre><code>public function store(Request $request)
      {
          // dd($request-&gt;all());
          $this-&gt;validate($request, [
              'name'      =&gt;'required',
              'username'  =&gt;'required',
              'email'     =&gt;'required',
              'address'   =&gt;'required',
              'likes'     =&gt;'required',
              'gender'        =&gt;'required'
  
          ]);
  
          $input = $request-&gt;all();
  
          Contacts::create($input);
  
          Session::put('flash_message', 'Task successfully added!');
          return redirect()-&gt;back();
      }
  </code></pre>
  
  <p>And Retrieving by this code</p>
  
  <pre><code>@if(Session::has('flash_message'))
          &lt;div class="alert alert-success"&gt;
              {{ Session::get('flash_message') }}
          &lt;/div&gt;
  @endif
  </code></pre>