-
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.
New methods: SessionStore::increment and SessionStore::decrement (#14196
) Several stores in the framework offer increment and decrement methods as a convenient helper method for get/set. This change implements such methods 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
1 parent
917dfbc
commit e2860de
Showing
2 changed files
with
62 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