Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

LARAVEL SESSION 5.7 NOT REPLACE VALUE

I enter a value in a session, it saves (5%) then I insert another value again (99%), it will always return me the (5%)

First value = 5%;

Second value = 99% (replace the value);

Third value = 5% (it always goes back to 5%)

FIRST TIME

     Session::put('progress', '5%');

    // Session::put('progress', '99%');

    dd(Session::get('progress')); 

RESULT

5%

SECOND TIME

    // Session::put('progress', '5%');

     Session::put('progress', '99%');

    dd(Session::get('progress')); 

RESULT

99%

THIRD TIME (THE PROBLEM !!)

    // Session::put('progress', '5%');

   //  Session::put('progress', '99%');

        dd(Session::get('progress')); 

RESULT

5%

Comments