cerbos/cerbos-sdk-laravel
最新稳定版本:v1.10.4
Composer 安装命令:
composer require cerbos/cerbos-sdk-laravel
包简介
Cerbos PHP Laravel SDK for interacting with the Cerbos PDP
README 文档
README
Cerbos Laravel SDK provides cerbos service provider and configuration for using Cerbos with laravel.
Installation
You can install the SDK via Composer. Run the following command:
composer require cerbos/cerbos-sdk-laravel
The CerbosServiceProvider is auto-discovered and registered by default.
But, it is also possible to manually register the CerbosServiceProvider too by adding it to config/app.php.
'providers' => ServiceProvider::defaultProviders()->merge([ // ... \Cerbos\Sdk\Laravel\Provider\CerbosServiceProvider::class, ])->toArray(),
Use the artisan vendor command which will create the config/cerbos.php for customizing the cerbos configuration.
php artisan vendor:publish
统计信息
- 总下载量: 109
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2023-09-11