title: Laravel 5.3 - How to keep the session message until the users logs out
body: <p>I am sending a welcome message to user after registration. I have modified the trait method in my controller like so:</p>
  
  <pre><code>public function register(Request $request)
      {
          $this-&gt;validator($request-&gt;all())-&gt;validate();
  
          event(new Registered($user = $this-&gt;create($request-&gt;all())));
  
          $this-&gt;guard()-&gt;login($user);
  
          Session::set('message','messages.welcome');
  
          return redirect($this-&gt;redirectPath())-&gt;with('message', 'messages.welcome');
      }
  </code></pre>
  
  <p>I have also tried <code>$request-&gt;session()-&gt;put('message','messages.welcome');</code> instead of <code>Session::set('message','messages.welcome');</code> but it gave me the same result.</p>
  
  <p>And then I am showing the message in the view like this:</p>
  
  <pre><code>@if (session('message'))
     @include(session('message'))
  @endif
  </code></pre>
  
  <p>But when I refresh the view the messages disappears, how can I keep the messages until the user logs out? </p>