定制 laravel-enso/users 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

laravel-enso/users

Composer 安装命令:

composer require laravel-enso/users

包简介

User administration backend for Laravel Enso

README 文档

README

License Stable Downloads PHP Issues Merge Requests

Description

Users is Enso's backend package for application account administration.

It manages the user entity itself, profile and access relationships, API tokens, active sessions, password resets, select options, and table/export endpoints, while integrating with people, roles, user groups, files, companies, and core preferences.

Installation

Install the package:

composer require laravel-enso/users

Run the migrations:

php artisan migrate

Features

  • Full user CRUD with create, edit, show, set password on creation, reset password, and destroy flows.
  • Session inspection and forced session termination endpoints.
  • API token create/store/index/destroy endpoints.
  • Table bootstrap, data, and export endpoints.
  • Rich User model with role/group checks, preferences, and login relations.
  • Sanctum integration through HasApiTokens.

Usage

Main user routes:

  • prefix: api/administration/users
  • name prefix: administration.users.

User endpoints:

  • GET create/{person}
  • POST /
  • GET {user}/edit
  • PATCH {user}
  • DELETE {user}
  • GET initTable
  • GET tableData
  • GET exportExcel
  • GET options
  • GET {user}
  • POST {user}/resetPassword

Token endpoints:

  • administration.token.create
  • administration.token.store
  • administration.token.index
  • administration.token.destroy

Session endpoints:

  • administration.session.index
  • administration.session.destroy

Main model:

  • LaravelEnso\Users\Models\User

Notable methods:

  • canAccess(string $route)
  • isAdmin()
  • isSupervisor()
  • isSuperior()
  • belongsToAdminGroup()
  • preferredLocale()
  • initPreferences()

API

This package exposes its backend integration through the routes, controllers, services, jobs, and configuration points referenced in the usage examples above.

Consumers should rely on the published config keys, documented route groups, and explicit service classes shown in the examples. Internal helper classes, listeners, casts, and background jobs are implementation details unless the README calls them out as extension points.

Depends On

Required Enso packages:

Companion frontend package:

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

统计信息

  • 总下载量: 25.7k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 23
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 4
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-06-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固