在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):kodeine/laravel-acl开源软件地址(OpenSource Url):https://github.com/kodeine/laravel-acl开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):Kodeine/Laravel-ACLLaravel ACL adds role based permissions to built in Auth System of Laravel 9.0+. ACL middleware protects routes and even crud controller methods. Table of ContentsRequirements
Getting StartedInstall the package using composer
If you need to support Laravel 5.x, make sure to install version 1.x
'providers' => [
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
'Illuminate\Auth\AuthServiceProvider',
...
'Kodeine\Acl\AclServiceProvider',
],
protected $routeMiddleware = [
....
'acl' => 'Kodeine\Acl\Middleware\HasPermission',
];
use Kodeine\Acl\Traits\HasRole;
class User extends Model implements AuthenticatableContract, CanResetPasswordContract
{
use Authenticatable, CanResetPassword, HasRole;
}
Please note that if you are upgrading to 6.0 from a previous version, the default column type for the id on the users table has changed. On certain databases foreign keys can only be defined with matching column types. As such, you will need to change the id column on your users table to bigInteger in to user this package.
DocumentationFollow along the Wiki to find out more. RoadmapHere's the TODO list for the next release.
Change LogsSeptember 14 2019
September 13, 2019
September 22, 2016*
September 20, 2016*
September 19, 2016
June 14, 2015
March 28, 2015
March 7, 2015
Contribution GuidelinesSupport follows PSR-2 PHP coding standards, and semantic versioning. Please report any issue you find in the issues page. Pull requests are welcome. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论