-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Several stores in the framework offer a method increment, as a convenient helper method for get/set. This change implements an increment method in the session store, to ease the tracking of a state into a session. For example you can: ``` $redirectsCount = Session::increment('auth.redirects'); if ($redirectsCount < 3) { // Retry to authenticate user to an external service. } ```
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters