techlify-inc / laravel-user-management
0.4.2
2018-08-22 02:08 UTC
Requires
- techlify-inc/laravel-rbac: >=0.3.0
This package is not auto-updated.
Last update: 2022-02-01 13:12:53 UTC
README
这是一个为Laravel提供用户管理服务的简单包
安装
使用以下命令通过composer安装此包
composer require techlify-inc/laravel-user-management
运行迁移
$ php artisan migrate
用法
此包提供以下API服务,您的前端可以使用
用户管理
// Get the set of users GET api/users // Get a single user GET api/users/{id} // Add a new user POST api/users // Update a user record PATCH api/users/{id} // Delete a user record DELETE api/users/{id}
用户密码管理
// Change the current user password POST api/user/current/update-password {current_password, new_password}
用户会话管理
// Log out the currently logged in user POST api/user/logout // Get the User record of the currently logged in user GET api/user/current