guolei19850528 / laravel-admin-extras

description...

Stars
1

laravel-admin-extras

针对laravel-admin做的部分扩展

安装

composer require guolei19850528/laravel-admin-extras

php artisan vendor:publish --tag=laravel-admin-extras

Form扩展使用

$form->radioButton('column', __('text'));
//替换为
$form->extraRadioButton('column', __('text'));

$form->checkboxButton('column', __('text'));
//替换为
$form->extraCheckboxButton('column', __('text'));

//json editor
//option see https://github.com/jdorn/json-editor/
$form->extraJsonEditor('json_column', __('text'))->setOptions([]);

Detail扩展使用

$show->field('date_column', __('text'))->extraDateFormatter($formatter = 'Y-m-d H:i:s');

Grid扩展使用

$grid->column('date_column', __('text'))->extraDateFormatter($formatter = 'Y-m-d H:i:s');