asseco-voice / laravel-content-driver
Flysystem Adapter for the Content microservice
v3.0.1
2023-10-06 08:16 UTC
Requires
- php: ^8.1
- ext-json: *
- asseco-voice/laravel-common: ^3.0
- guzzlehttp/guzzle: ^7.0
- laravel/framework: ^10.0
Requires (Dev)
- fakerphp/faker: ^1.9.1
- mockery/mockery: ^1.4.4
- orchestra/testbench: ^8.5
- phpunit/phpunit: ^10.0
README
内容驱动
此存储库的目的是提供Content服务的驱动程序。
安装
使用composer require asseco-voice/laravel-content-driver
安装包。服务提供者将自动注册。
设置
为了使用此存储库,必须在您的.env
文件中设置以下变量
FILESYSTEM_DRIVER
- 设置将使用的驱动程序。必须设置为content
CONTENT_ROOT
- 将作为应用根目录处理的目录。默认情况下,将使用应用的蛇形名称CONTENT_API_URL
- Content服务的基准URLCONTENT_REPOSITORY
- 设置默认存储库
示例
FILESYSTEM_DRIVER=content
CONTENT_ROOT=contacts
CONTENT_API_URL=https://example/v1/content
CONTENT_REPOSITORY=dms