Admin module for Infuse Framework
- Install the package with composer:
composer require infuse/admin
- Copy the CSS and JS files into the
public
directory. If you use the minified versions, be sure they are renamed tocss/admin.css
andjs/admin.js
.
- admin_type:
Type of field for admin
String
Default: text
Available Types:
- text
- textarea
- checkbox
- datepicker
- enum
- password
- json
- html Optional
- admin_enum:
Key-value list of enumeration values when admin_type =
enum
. Array - admin_hidden_property Hides the property by default when browsing models in the admin dashboard. Boolean Default: false Optional
- admin_html: An HTML string that will have values from the model injected. Only used in the admin dashboard. String Example: {username} Optional
- admin_no_sort: Prevents the column from being sortable in the admin dashboard Boolean Default: false Optional
- admin_no_wrap: Prevents the column from wrapping in the admin dashboard Boolean Default: false Optional
- admin_truncate: Prevents the column from truncating values in the admin dashboard Boolean Default: true Optional