Download the PHP package jjkkopq/configx without Composer
On this page you can find all versions of the php package jjkkopq/configx. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jjkkopq/configx
More information about jjkkopq/configx
Files in jjkkopq/configx
Package configx
Short Description laravel-admin extension configx
License MIT
Homepage https://github.com/ichynul/configx
Informations about the package configx
laravel-admin configx
Installation
need to install laravel-admin-ext/config first, see https://github.com/laravel-admin-extensions/config
Then run :
Then run:
Add a tabs config in config/admin.php
:
Usage
Open http://your-host/admin/configx/edit
Demo
You can click "+" to config tabs :
add an new config key
step 1 Select config type from ['base']
step 2 Select form-element type from ['normal', 'date', 'time', 'datetime', 'image', 'yes_or_no', 'number', 'rate', 'editor', 'radio_group' ,'checkbox_group', 'select']
... and so on
step 3 If you selected form-element type is ['radio_group' ,'checkbox_group', 'select']
,you need inupt [options]
:
just text:
and key-text:
or load from ulr:
options_url:/api/mydata
If you selected form-element type is textarea
, you can config it rows:3
, default is 5.
If you selected form-element type is table
, rows / cols
is needed :
base.some_key
This wiil build a table like below :
`php 'configx' => [ 'new_config_type' => '配置类型', 'new_config_key' => '配置key', 'new_config_name' => '配置名称', 'new_config_element' => '配置表单元素', 'new_config_help' => '配置help', 'new_config_options' => '配置扩展项', 'header' => '网站设置', 'desc' => '网站设置设置', 'element' => [ 'normal' => '默认', 'textarea' => '文本域', 'date' => '日期', 'time' => '时间', 'datetime' => '日期时间', 'password' => '密码' 'image' => '图片', 'multiple_image' => '多图', 'file' => '文件', 'multiple_file' => '多文件', 'yes_or_no' => '是或否', 'editor' => '编辑器', 'radio_group' => '单选框组', 'checkbox_group' => '多选框组', 'number' => '数字', 'rate' => '比例', 'select' => '下拉框', 'tags' => '标签', 'icon' => '图标', 'color' => '颜色', 'table' =>'表格', 'listbox' => '左右多选框', 'multiple_select' => '下拉多选', 'map' => '地图' ], ], 'yes' => '是', 'no' => '否'
if you need add a new config tab, chang it in `config/admin.php`.
After add config in the panel, use `config($key)` to get value you configured.
License
---
Licensed under [The MIT License (MIT)](LICENSE).
All versions of configx with dependencies
encore/laravel-admin Version ~1.6
laravel-admin-ext/config Version ^1.0
ichynul/row-table Version ^1.1.0