Skip to content

Commit

Permalink
Add reflash before save session to keep old input in session
Browse files Browse the repository at this point in the history
  • Loading branch information
it-can committed Dec 5, 2016
1 parent 187ce87 commit 1b9e31d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/LaraCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ public function update()
$this->authManager->user()->save();
}

$this->session->reflash();

$this->session->save();

$this->events->fire('laracart.update', $this->cart);
Expand Down

0 comments on commit 1b9e31d

Please sign in to comment.