v1.7.0 (2019-06-08)
In this version, there are the following changes
Framewark
- Add
Admin::favicon()
method to set the website'sfavicon
- Added
Admin::style()
method to add css style to the current page - Added
Admin::html()
method to add HTML code to the current page. Widget\Box
component supports setting the scroll bar inside the box- Remove the refresh button from the header of the table and add a refresh button in the upper right corner of the page navigation
Model grid
- Added quick search feature, refer to documentation
- Add the
Column::help()
method to prompt the column with text - Added
Column::gravatar()
method to displayGravatar
avatar via email - Added
Column::carousel()
method to display an image rotation effect in the list - Add the
Column::width()
method to set the width of the column - Added
Column::hide()
method to set the table column to not display by default - Added
Column::filezise()
method to display file size more friendly - Added
Column::loading()
method to display loading status more friendly - Support for displaying JSON field operations
Model details
- Added
Field::carousel()
method to display an image carousel on the details page - Added
Field::filezise()
method for more friendly display file size
Model Form
- Support for operating JSON fields
- Form delete file add confirmation prompt box
- Form
checkbox
supports settingoptions
via anonymous functions - Form items add
updateRules
andcreationRules
methods to distinguish between form validation rules for creating and updating scenes - Added
File::retainable()
method to set the file when deleting data. listbox
supports loading options viaajax
- Add
Timezone
form item to select time zone - Add
KeyValue
form item to manipulate the data of the key-value structure - Add
List
form item to manipulate list structure data - Add the
Form::fieldset()
method to group multiple form items into groups - Added
Checkbox::canCheckAll()
method to add a select all operation to the checkbox component
Widget Form
- Enhanced
Widget\Form
for data processing of form components, see [documentation] (https://laravel-admin.org/docs/zh/data-form)
Command
- Optimized the
admin:make
command to make the generated controller file more concise admin:make
command to addnamespace
option to set the namespace of the created controller- Added
admin:form
command to generate Form class - Fixed CSS/JS compression command bug
Configuration
- Add
enable_menu_search
configuration to control the display of the left menu search - Added
minify_assets.excepts
configuration to exclude resource files that do not need to be compressed