ducvc/trusty

此软件包的最新版本(dev-master)没有提供许可证信息。

Laratrust的用户界面

维护者

详细信息

github.com/ducvc/laratrust-ui

源代码

安装: 0

依赖项: 0

建议者: 0

安全: 0

星级: 0

关注者: 0

分支: 3

语言:HTML

类型:laravel

dev-master 2020-06-08 09:24 UTC

This package is not auto-updated.

Last update: 2024-09-25 04:31:39 UTC


README

此软件包为 santigarcor/laratrust 软件包提供用户界面

目录

演示

以下提供了此软件包的演示。请注意,演示中某些功能已被禁用,例如编辑和删除用户。演示数据库每小时重置一次。

演示URL: http://trusty-demo.icwebapps.com

演示用户名: user@example.com

演示密码: 密码

需求

此软件包要求您至少安装版本 5.2.* 的软件包 santigarcor/laratrust

安装

首先,从您的终端运行 composer require 命令。

composer require icweb/trusty

配置

如果您正在使用Laravel 5.4或更低版本,请将以下提供者添加到您的 config\app.php 提供者数组中。Laravel 5.5+ 将通过软件包发现自动完成此操作。

Icwebb\Trusty\App\Providers\TrustyServiceProvider::class

通过在您的终端中运行 vendor:publish 命令发布供应商文件

php artisan vendor:publish --tag="trusty"

以下文件将被发布

/config
    - trusty.php
    
/resources/views/vendor/trusty
    - index.blade.php    
    /layouts
        - trusty.blade.php
    /permissions
        - create.blade.php
        - edit.blade.php
        - index.blade.php
        - show.blade.php
    /roles
        - create.blade.php
        - edit.blade.php
        - index.blade.php
        - show.blade.php
    /users
        - create.blade.php
        - edit.blade.php
        - index.blade.php
        - show.blade.php

使用方法

您可以通过在终端中运行 route:list 命令来查看此软件包创建的所有路由

php artisan route:list
+-----------+-------------------------------------+----------------------------+------------------------------------------------------------------------+--------------+
| Method    | URI                                 | Name                       | Action                                                                 | Middleware   |
+-----------+-------------------------------------+----------------------------+------------------------------------------------------------------------+--------------+
| GET|HEAD  | trust                               | trusty.index               | Icweb\Trusty\App\Http\Controllers\TrustyController@index               | web,auth     |
| POST      | trust/permissions                   | trusty.permissions.store   | Icweb\Trusty\App\Http\Controllers\PermissionsController@store          | web,auth     |
| GET|HEAD  | trust/permissions                   | trusty.permissions.index   | Icweb\Trusty\App\Http\Controllers\PermissionsController@index          | web,auth     |
| GET|HEAD  | trust/permissions/create            | trusty.permissions.create  | Icweb\Trusty\App\Http\Controllers\PermissionsController@create         | web,auth     |
| GET|HEAD  | trust/permissions/{permission}      | trusty.permissions.show    | Icweb\Trusty\App\Http\Controllers\PermissionsController@show           | web,auth     |
| PUT|PATCH | trust/permissions/{permission}      | trusty.permissions.update  | Icweb\Trusty\App\Http\Controllers\PermissionsController@update         | web,auth     |
| DELETE    | trust/permissions/{permission}      | trusty.permissions.destroy | Icweb\Trusty\App\Http\Controllers\PermissionsController@destroy        | web,auth     |
| GET|HEAD  | trust/permissions/{permission}/edit | trusty.permissions.edit    | Icweb\Trusty\App\Http\Controllers\PermissionsController@edit           | web,auth     |
| POST      | trust/roles                         | trusty.roles.store         | Icweb\Trusty\App\Http\Controllers\RolesController@store                | web,auth     |
| GET|HEAD  | trust/roles                         | trusty.roles.index         | Icweb\Trusty\App\Http\Controllers\RolesController@index                | web,auth     |
| GET|HEAD  | trust/roles/create                  | trusty.roles.create        | Icweb\Trusty\App\Http\Controllers\RolesController@create               | web,auth     |
| PUT|PATCH | trust/roles/{role}                  | trusty.roles.update        | Icweb\Trusty\App\Http\Controllers\RolesController@update               | web,auth     |
| DELETE    | trust/roles/{role}                  | trusty.roles.destroy       | Icweb\Trusty\App\Http\Controllers\RolesController@destroy              | web,auth     |
| GET|HEAD  | trust/roles/{role}                  | trusty.roles.show          | Icweb\Trusty\App\Http\Controllers\RolesController@show                 | web,auth     |
| GET|HEAD  | trust/roles/{role}/edit             | trusty.roles.edit          | Icweb\Trusty\App\Http\Controllers\RolesController@edit                 | web,auth     |
| GET|HEAD  | trust/users                         | trusty.users.index         | Icweb\Trusty\App\Http\Controllers\UsersController@index                | web,auth     |
| POST      | trust/users                         | trusty.users.store         | Icweb\Trusty\App\Http\Controllers\UsersController@store                | web,auth     |
| GET|HEAD  | trust/users/create                  | trusty.users.create        | Icweb\Trusty\App\Http\Controllers\UsersController@create               | web,auth     |
| DELETE    | trust/users/{user}                  | trusty.users.destroy       | Icweb\Trusty\App\Http\Controllers\UsersController@destroy              | web,auth     |
| PUT|PATCH | trust/users/{user}                  | trusty.users.update        | Icweb\Trusty\App\Http\Controllers\UsersController@update               | web,auth     |
| GET|HEAD  | trust/users/{user}                  | trusty.users.show          | Icweb\Trusty\App\Http\Controllers\UsersController@show                 | web,auth     |
| GET|HEAD  | trust/users/{user}/edit             | trusty.users.edit          | Icweb\Trusty\App\Http\Controllers\UsersController@edit                 | web,auth     |
+-----------+-------------------------------------+----------------------------+------------------------------------------------------------------------+--------------+

或者您可以在您的网络浏览器中输入以下URL开始使用

http://127.0.0.1:8000/trust

路由中间件

此软件包允许您自定义应用于路由的中间件组。要更改默认中间件组,请访问 config/trust.php 配置文件。默认情况下,应用了 webauth 中间件组。

'middleware' => ['web', 'auth'],

截图

用户索引: screely-1562522993648

用户展示: screely-1562523001593

用户编辑: screely-1562523018730

角色索引: screely-1562523028116

角色展示: screely-1562523045843

权限索引: screely-1562523060466

待办事项