承接 techaxion/user-roleright-laravel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

techaxion/user-roleright-laravel

最新稳定版本:v1.0.24

Composer 安装命令:

composer require techaxion/user-roleright-laravel

包简介

User Role and Right Management With Route

README 文档

README

User Role and Right Management With Route

Features

  • Manage users, roles, and permissions
  • Assign roles and permissions to users
  • Middleware for route protection
  • Easy integration with Laravel projects

Installation

composer require techaxion/user-roleright-laravel
* Checks if the 'module_action' table exists to prevent reinstallation.
* Publishes package routes using the 'vendor:publish' Artisan command.
* Runs package-specific migrations for required tables.
* Seeds the 'module_action' table with initial data.
* Publishes package configuration and other assets.
* Appends a require statement for dynamic routes to 'routes/web.php'.
* Adds a 'remove-useraccess' script to 'composer.json' for easy package removal.

uninstall

composer run-script remove-useraccess
 * Checks for the existence of the `routes/UserAccessDynamicRoutes.php` file:
 *    - If it exists, removes the dynamic route inclusion from `routes/web.php` and deletes the dynamic routes file.
 *    - If unable to open `routes/web.php` for writing, outputs an error message.
 * Opens and decodes the `composer.json` file, removes the `remove-useraccess` script entry, and writes the updated JSON back to the file.
 * Outputs an informational message indicating the completion of the package removal process.

Usage

License

MIT

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-15