samedi 9 octobre 2021

Storing and retrieving data from session in laravel 5.6

I am using laravel 5.6 and my php is 7.3. I am trying to store data in session. I tried

use Session;
session()->put( 'item_data', [1,2,3]);
dd(Session::get( 'item_data' )); 

it shows value properly but problem is if I tried another request then it's showing null. That's mean it's working instantly storing in session. After that showing null



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3mCGfij
via IFTTT

Aucun commentaire:

Enregistrer un commentaire