Skip to content

Commit

Permalink
Remove from old flash when a var is flashed.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 29, 2013
1 parent 1a3a138 commit 9667453
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Session/Store.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ public function flash($key, $value)
$this->put($key, $value);

$this->push('flash.new', $key);

$this->put('flash.old', array_diff($this->get('flash.old'), array($key)));
}

/**
Expand Down

0 comments on commit 9667453

Please sign in to comment.