session()->put('currency', $currency); session()->save();
If I immediately dd the session it shows the new value. But in another place, it shows the old value means not saving. I have been facing this issue with every Laravel project.
I tried with all session drivers, redis, array, file and databse. Anybody, please give a permanent solution of this issue.
Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.