Download the PHP package webakula/laravel-admin-ext-rbac without Composer

On this page you can find all versions of the php package webakula/laravel-admin-ext-rbac. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-admin-ext-rbac

RBAC extension for laravel-admin 2.x

Installation

发布资源:

运行迁移

通过下面的命令,创建一个菜单项,新建一个默认的超级管理员角色(administrator), 最后把所有的用户设置为超级管理员

超级管理员角色拥有所有路由和action的访问权限,并且所有的菜单对其可见。

到这里结束安装,打开http://localhost/admin/auth/roles管理角色,在用户模块http://localhost/admin/auth/users可以给用户添加角色。

Usage

首先需要在config/admin.php中的路由配置中添加rbac中间件开启, 在route.middleware中加入'admin.rbac'即可

用户需先关联角色,然后给角色设置可访问路由可访问操作以及可见菜单来实现给予角色访问控制。

角色之间可以继承,继承之后将自动拥有父级角色的访问权限。

QQ20200917-160148

如上图所示,在设置角色权限的时候,会自动加载所有注册的后台路由action以及菜单项,在这之前需要先进行下面的设置:

设置路由名称

app/Admin/routes.php中,给路由设置名称:

上面的配置将会生成下面的路由访问配置

QQ20200917-154747

Action访问控制

如果你使用了laravel-admin的action,并希望进行访问控制,需要先在config/admin/rbac.php中进行配置:

将会生成如下截图的Action控制项:

QQ20200917-155809

Donate

Help keeping the project development going, by donating a little. Thanks in advance.

PayPal Me

-1

License

Licensed under The MIT License (MIT).


All versions of laravel-admin-ext-rbac with dependencies

PHP Build Version
Package Version
Requires encore/laravel-admin Version 2.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package webakula/laravel-admin-ext-rbac contains the following files

Loading the files please wait ....