title: Laravel global session helper is not working
body: <p>I'm using Laravel version 5.4.36 and global session helper is not working anymore. </p>
  
  <p>Here is what I did: when a logged in user access a controller function, I need to save some data and when user refresh(reload) the page then I want to keep that data but it seems global session helper is not doing this. Is something I'm doing wrong? My session is file based.
  I followed <a href="https://laravel.com/docs/5.4/session" rel="nofollow noreferrer">official doc</a> but unfortunately no help :)</p>
  
  <p>Storing data with <code>$request-&gt;session()-&gt;put(...)</code> is useless in my case because whenever user reload the page data lost.</p>
  
  <pre><code>use Illuminate\Http\Request;
  
  class WatchController extends Controller{
  
       public function __construct(){
          $this-&gt;middleware(['auth']);
       }
  
      public function watchAds(Request $request){
  
         $userId = Auth::user()-&gt;id;
  
         if(!session('data')){
  
              echo "Data not set";
              $data = array(1,3,4,5);
              session(['data' =&gt; $data]);
              //Update, here it print data but if I do reload the page then always load this if section.
              $data = session('data');
              print_r($data);
  
         }else{
  
              echo "Data already set";
              $data = session('data');
              print_r($data);
         }
         exit;
      }
  }
  </code></pre>