search

Home  >  Q&A  >  body text

laravel - Questions about flash memory in Session?

Illuminate\Session\Store.phpThe file is mainly the function of session;

Some of the methods will save the data to _flash.old, and some methods will save the data to _flash.new;

Anyone who knows, what is the difference between _flash.old and _flash.new? What are the differences in usage scenarios? Thanks!

習慣沉默習慣沉默2820 days ago630

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你2017-05-16 16:48:38

    After a long search, I found some accurate answers in Laravel-china, but they are still not detailed enough, as follows:

    总之,就是把本次请求要删除的数据放在'_flash.old',留到下一次请求中使用的就把它刷到'_flash.new'中。

    Hope someone can provide more details.

    reply
    0
  • Cancelreply