speed-admin
1.2.03
1.2.03
  • Speed Admin
  • Features
  • Change logs
  • Quick Start (Tutorial)
    • About this tutorial
    • Brands CRUD
    • Categories CRUD
    • Products CRUD
    • Orders CRUD
  • Miscellaneous
    • How to change "Speed Admin" title and other information
    • How to add controller
    • How to add routes
    • How to add Modules/Applications
    • How to add translatable fields to forms
    • How to override model and add / remove form fields or grid columns
    • Settings Management
    • How to add custom actions
    • How to use multi-tenant feature
  • Fields
    • div
    • text
    • image
    • checkbox
    • belongsTo
    • belongsToMany
    • datetime
    • textarea
    • repeater
    • html
    • select
    • Custom Field
Powered by GitBook
On this page
  1. Fields

image

$this->addFormItem([
    'id' => 'image',
    'parent_id' => 'left-col',
    'type' => 'image',
    'label' => __('Image'),
    'name' => 'image',
    'upload_path' => 'brands',
    'validation_rules' => ['image' => 'required|image|max:2048'],
]);
PrevioustextNextcheckbox

Last updated 3 years ago