Skip to content

Commit 9667453

Browse files
committed
Remove from old flash when a var is flashed.
1 parent 1a3a138 commit 9667453

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Illuminate/Session/Store.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ public function flash($key, $value)
138138
$this->put($key, $value);
139139

140140
$this->push('flash.new', $key);
141+
142+
$this->put('flash.old', array_diff($this->get('flash.old'), array($key)));
141143
}
142144

143145
/**

0 commit comments

Comments
 (0)