定制 konekt/acl 二次开发

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

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

konekt/acl

最新稳定版本:2.1.0

Composer 安装命令:

composer require konekt/acl

包简介

Concord Module for Permission handling (Laravel 10 - 12)

README 文档

README

Tests Packagist version Packagist downloads StyleCI MIT Software License

This package allows you to manage user permissions and roles in a database.

Intro

Once installed you can do stuff like this:

// Adding permissions to a user
$user->givePermissionTo('edit articles');

// Adding permissions via a role
$user->assignRole('writer');

$role->givePermissionTo('edit articles');

Because all permissions will be registered on Laravel's gate, you can test if a user has a permission with Laravel's default can function:

$user->can('edit articles');

Package Origins

  • This package is a fork of Spatie's Permission v2.1.5.
  • Reason for the fork was to convert the package into a Concord compliant module.
  • As of v1.0: most of the changes have been ported from Spatie v2.9.0
  • Beginning with v2.0, this package no longer maintains compatibility and feature parity with the Spatie Permission package.
  • The most important feature of v2 is the possibility of Sharing Eloquent models across users.

Documentation

https://konekt.dev/acl/master/README

Changelog

Please see Changelog for more information what has changed recently.

Credits

This package is a modified variant of Spatie Permission package which is heavily based on Jeffrey Way's awesome Laracasts lessons on permissions and roles. His original code can be found in this repo on GitHub.

Alternatives

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 10
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

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