live-controls/easy-settings
最新稳定版本:v1.1.0
Composer 安装命令:
composer require live-controls/easy-settings
包简介
Simple settings library for easily accessable configurations
README 文档
README
Simple settings library for easily accessable configurations
Setup
- Publish migrations
php artisan vendor:publish livecontrols.easy_settings.migrations
- Migrate
php artisan migrate
Usage
Set settings
This will set a specific value (can be any json compatible value) to a specific key. This will also update a value if it already exists.
\LiveControls\EasySettings\EasySettings::set('key', 'value');
Get settings
This will get a specific value and stores it to the cache if set.
\LiveControls\EasySettings\EasySettings::get('key', 'default', 120); //Will return a string 'default' if value can't be found and stores it for 120 seconds
Forget settings
This will remove the setting with the specific key from the cache.
\LiveControls\EasySettings\EasySettings::forget('key');
Delete settings
This will delete the setting with the specific key from the database and cache.
\LiveControls\EasySettings\EasySettings::delete('key');
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2026-02-28