Illuminate\Session\Store.php
The 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!
世界只因有你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.