vadiasov/users-admin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

vadiasov/users-admin

Composer 安装命令:

composer require vadiasov/users-admin

包简介

Creates user-roles DB table. Serve CRUD operation for "users" DB table. Serves user-roles operations.

README 文档

README

This package creates DB table user_roles and serves CRUD pages of users in administrative panel included its roles. The package includes facade to operate user's role. It includes a ServiceProvider to register the package and attach it to the output.

Installation

Add the package to root composer.json:

"require": {
        ...
        "vadiasov/users-admin": "^1.0.0",
  }

Then run:

composer update

Register package in config/app.php

'providers' => [
        /*
         * Package Service Providers...
         */
        Vadiasov\UsersAdmin\UserServiceProvider::class,

Create model:

php artisan make:model User_role

Publish migrations and seeds. Run:

php artisan vendor:publish

and enter appropriate number of this package (see terminal output after last command).

Migrate:

php artisan migrate

Seed if you need demo data:

php artisan db:seed class=UserRolesSeeder

Routes

The routes are in the package:

admin/users
admin/users/create
admin/users/{id}/edit
admin/users/{id}/delete

Methods

UsersAdmin::hasRole($userId, $roleId)
UsersAdmin::setRole($userId, $roleId) (will be created later)

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固