tmoiseenko/laravel-customer-service
Composer 安装命令:
composer require tmoiseenko/laravel-customer-service
包简介
A package for creating a General user entity, with the ability to save his actions in the application before authorization and subsequent linking of the received data with the authorized user.
README 文档
README
This package is designed to create a common user entity, regardless of whether he is authorized in the application or not, for the possibility of saving the user's interaction before and after authorization. For example, a user logged into the system without authorization and put something in the basket or favorites, after authorization all his deferred positions can be synchronized with a specific user after authorization.
Installation
Via Composer
composer require tmoiseenko/customerservice
Usage
create - takes a hash as an argument to create a record in the Customer table.
getByHash - takes a hash as an argument to get a specific Customer.
associateWithUser - takes a hash and a user ID for a Customer with a specific user as arguments.
removeByHash - takes a hash as an argument to delete a Customer.
checkIsNotCustomerInDb - takes a hash as an argument to check if a Customer with that hash exists in the database.
Testing
composer test
Security
If you discover any security related issues, please email angrav6@gmail.com instead of using the issue tracker.
Credits
License
MIT.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-21