trrtly/setting
Composer 安装命令:
composer require trrtly/setting
包简介
trrtly setting component
关键字:
README 文档
README
Laravel 5.x Settings help your key value to persist.
Installation
Composer install
$ composer require ibrand/setting -vvv
If your Laravel version below 5.5, you need add the follow line to the section providers of config/app.php:
iBrand\Component\Setting\ServiceProvider::class,
Publishing config file
If you want to edit default config file, just publish it you app config folder.
php artisan vendor:publish --provider="iBrand\Component\Setting\ServiceProvider"
Creating table for database.
Execute artisan command
php artisan migrate
Usage
Change database table name.
If you want to change database table name, you can change config/ibrand/setting.php after publishing config file.
return [ 'table_name' => 'el_system_settings', 'cache' => true, ];
Use settings() help method.
Set value
settings(['key'=>'value'])
Get Value
settings('key')
Use App make Method.
Set value
app('system_setting')->setSetting(['key'=>'value'])
Get Value
app('system_setting')->getSetting('key')
Disable cache.
Set cache=>false in config/ibrand/setting.php file.
return [ 'table_name' => 'el_system_settings', 'cache' => false, ];
果酱云社区
-
全网真正免费的IT课程平台
-
专注于综合IT技术的在线课程,致力于打造优质、高效的IT在线教育平台
-
课程方向包含Python、Java、前端、大数据、数据分析、人工智能等热门IT课程
-
300+免费课程任你选择
trrtly/setting 适用场景与选型建议
trrtly/setting 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.61k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 03 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「component」 「setting」 「ibrand」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 trrtly/setting 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 trrtly/setting 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 trrtly/setting 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
FSi DataSource Component
An app setting manager tool for laravel nova
Persistent Laravel configuration settings.
ibrand laravel express
iBrand coterie server.
Priveate for SkeekS CMS
统计信息
- 总下载量: 4.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 25
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-03-29