承接 sid/laravel-acl 相关项目开发

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

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

sid/laravel-acl

Composer 安装命令:

composer require sid/laravel-acl

包简介

Add structured ACL to Laravel >= 5.1.11

README 文档

README

Scrutinizer Code Quality Code Coverage Build Status

This laravel package adds structured ACL (roles and permissions) to Laravel >= 5.1.11

  • Very alpha stages. Not unstable but i need to write tests for it.
  • If you think it's a good starting point for you, take it.

###Installation Add to composer.json

"sid/laravel-acl":"dev-master" 

Register the service provider by adding in the provider section in config/app.php

'providers' => [
    ...
    Sid\Acl\Providers\AclServiceProvider::class
    ...

Just in case

composer dump-autoload

Publish the migration and the config file

php artisan vendor:publish

Migrate the ACL tables

php artisan migrate

Enable it. Modify config/acl.php

return [
    
    'enabled' => false
    
];

In you User model, import the trait

use Sid\Acl\Traits\HasRoles; to App\User

... and use it. Like so.

...
use Authenticatable, Authorizable, CanResetPassword, HasRoles;
...

###Credits Deliberately inspired by Jeffrey Way's lesson at Laracasts.

###Todo

  • Test. Tests. Tests.
  • Expanded documentation on adding roles and permissions
  • Management controllers and views

Contributing

Contributions are welcome and will be fully credited.

统计信息

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

GitHub 信息

  • Stars: 9
  • Watchers: 4
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固