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

datetime

$this->addFormItem([
    'id' => 'date',
    'parent_id' => 'left-col',
    'type' => 'datetime',
    'enable_time' => true,
    'validation_rules' => [
        'date' => 'required|date'
    ],
    'label' => __('Date'),
    'name' => 'date'
]);
PreviousbelongsToManyNexttextarea

Last updated 3 years ago