generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor cart services to improve session handling
The refactor includes renaming methods for better clarity such as getCartSessionId to getCartSessionKey and getSessionId to getAuthUserId. We have also improved the instantiation of CartService, SessionResolver, and capturing of session keys and user identity within the constructor. Adjustments are also made within the Cart model to better capture and handle the user and session scopes.
- Loading branch information
1 parent
08f12c9
commit 10ec9ed
Showing
3 changed files
with
33 additions
and
27 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
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