在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):spatie/laravel-permission开源软件地址(OpenSource Url):https://github.com/spatie/laravel-permission开源编程语言(OpenSource Language):PHP 99.5%开源软件介绍(OpenSource Introduction):Associate users with permissions and rolesSponsor
Documentation, Installation, and Usage InstructionsSee the documentation for detailed installation and usage instructions. What It DoesThis package allows you to manage user permissions and roles in a database. 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 check if a user has a permission with Laravel's default $user->can('edit articles'); Support usWe invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Testingcomposer test ChangelogPlease see CHANGELOG for more information what has changed recently. ContributingPlease see CONTRIBUTING for details. SecurityIf you discover any security-related issues, please email [email protected] instead of using the issue tracker. PostcardwareYou're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium. We publish all received postcards on our company website. CreditsThis package 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. Special thanks to Alex Vanderbist who greatly helped with And a special thanks to Caneco for the logo Alternatives
LicenseThe MIT License (MIT). Please see License File for more information. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论