Download the PHP package zuweie/settings without Composer
On this page you can find all versions of the php package zuweie/settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zuweie/settings
More information about zuweie/settings
Files in zuweie/settings
Download zuweie/settings
More information about zuweie/settings
Files in zuweie/settings
Vendor zuweie
Package settings
Short Description description...
License MIT
Package settings
Short Description description...
License MIT
Keywords extensionlaravel-admin
Please rate this library. Is it a good library?
Informations about the package settings
Zuweie Settings
Zuweie Setting 是一个laravel-admin后台配置功能。
项目背景
- 因为经常在各个项目里面需要使用后台配置,为了不重复编码,把配置做成一个laravel-admin的插件,方便在各个项目使用。找了一堆的settings的模块。一个都没有后台界面,让管理员怎么用~~让管理员怎么用~~让管理员怎么用~~
- 本项目使用数据库作固化,cache做加速。
安装
-
composer require zuweie/settings
-
执行以下命令
-
若是在publish的过程中没有发生文件的拷贝,请将Zuweie\Setting\SettingServiceProvider注册到 /config/app.php中。 再进行publish和migrate。
- 安装成功后打开连接http://yourhost/admin/setting?tag=xxx, 将会出现以下页面:
使用
写数据
-
打开地址:http://yourhost/admin/setting?tags=xxx, 传入参数tags,则显示当前tags的配置。例如tags=language_zh,打开language_zh的配置。若tags参数为空则返回全部的配置。
- 在配置列表添加你想要的配置。
读数据
- use Zuweie\Setting\Settings
例子:
key | tag | value |
---|---|---|
hello | zh | 你好呀 |
wait | zh | 等等 |
hello | jpn | こんにちは |
wait | jpn | ちょっと待ってください |
完了
All versions of settings with dependencies
PHP Build Version
Package Version
The package zuweie/settings contains the following files
Loading the files please wait ....