src/app/forms/HCGalleriesForm.php
public function getNewStructure()
    {
        return [
            [
                "type"            => "singleLine",
                "fieldID"         => $this->prefix . "title",
                "tabID"           => trans("Translations"),
                "label"           => trans("HCGalleries::galleries.title"),
                "required"        => 1,
                "requiredVisible" => 1,
                "multiLanguage"   => 1,
            ],
            [
                "type"          => "richTextArea",
                "fieldID"       => $this->prefix . "content",
                "tabID"         => trans("Translations"),
                "label"         => trans("HCGalleries::galleries.content"),
                "multiLanguage" => 1,
            ],
            [
                "type"          => "singleLine",
                "fieldID"       => $this->prefix . "location",
                "tabID"         => trans("General"),
                "label"         => trans("HCGalleries::galleries.location"),
                "multiLanguage" => 1,
            ],
            [
                "type"            => "dateTimePicker",
                "properties"      => [
                    "format" => "YYYY-MM-DD HH:mm:ss",
                ],
                "fieldID"         => $this->prefix . "publish_at",
                "tabID"           => trans("General"),
                "label"           => trans("HCGalleries::galleries.publish_at"),
                "requiredVisible" => 1,
            ], [
                "type"       => "dateTimePicker",
                "properties" => [
                    "format" => "YYYY-MM-DD HH:mm:ss",
                ],
                "fieldID"    => $this->prefix . "expires_at",
                "tabID"      => trans("General"),
                "label"      => trans("HCGalleries::galleries.expires_at"),


            ],
            [
                "type"      => "resource",
                "fieldID"   => $this->prefix . "images",
                "tabID"     => trans("Resources"),
                "uploadURL" => route("admin.api.resources"),
                "viewURL"   => route("resource.get", ['/']),
                "sortable"  => 1,
            ],
        ];
    }
public function getNewStructure()
    {
        return [
            [
                "type"            => "singleLine",
                "fieldID"         => $this->prefix . "title",
                "tabID"           => trans("Translations"),
                "label"           => trans("HCGalleries::galleries.title"),
                "required"        => 1,
                "requiredVisible" => 1,
                "multiLanguage"   => 1,
            ],
            [
                "type"          => "richTextArea",
                "fieldID"       => $this->prefix . "content",
                "tabID"         => trans("Translations"),
                "label"         => trans("HCGalleries::galleries.content"),
                "multiLanguage" => 1,
            ],
            [
                "type"          => "singleLine",
                "fieldID"       => $this->prefix . "location",
                "tabID"         => trans("General"),
                "label"         => trans("HCGalleries::galleries.location"),
                "multiLanguage" => 1,
            ],
            [
                "type"            => "dateTimePicker",
                "properties"      => [
                    "format" => "YYYY-MM-DD HH:mm:ss",
                ],
                "fieldID"         => $this->prefix . "publish_at",
                "tabID"           => trans("General"),
                "label"           => trans("HCGalleries::galleries.publish_at"),
                "requiredVisible" => 1,
            ], [
                "type"       => "dateTimePicker",
                "properties" => [
                    "format" => "YYYY-MM-DD HH:mm:ss",
                ],
                "fieldID"    => $this->prefix . "expires_at",
                "tabID"      => trans("General"),
                "label"      => trans("HCGalleries::galleries.expires_at"),


            ],
            [
                "type"      => "resource",
                "fieldID"   => $this->prefix . "images",
                "tabID"     => trans("Resources"),
                "uploadURL" => route("admin.api.resources"),
                "viewURL"   => route("resource.get", ['/']),
                "sortable"  => 1,
            ],
        ];
    }
public function getNewStructure ( ) { return [ [ "type" => "singleLine" , "fieldID" => $ this -> prefix . "title" , "tabID" => trans ( "Translations" ) , "label" => trans ( "HCGalleries::galleries.title" ) , "required" => 1 , "requiredVisible" => 1 , "multiLanguage" => 1 , ] , [ "type" => "richTextArea" , "fieldID" => $ this -> prefix . "content" , "tabID" => trans ( "Translations" ) , "label" => trans ( "HCGalleries::galleries.content" ) , "multiLanguage" => 1 , ] , [ "type" => "singleLine" , "fieldID" => $ this -> prefix . "location" , "tabID" => trans ( "General" ) , "label" => trans ( "HCGalleries::galleries.location" ) , "multiLanguage" => 1 , ] , [ "type" => "dateTimePicker" , "properties" => [ "format" => "YYYY-MM-DD HH:mm:ss" , ] , "fieldID" => $ this -> prefix . "publish_at" , "tabID" => trans ( "General" ) , "label" => trans ( "HCGalleries::galleries.publish_at" ) , "requiredVisible" => 1 , ] , [ "type" => "dateTimePicker" , "properties" => [ "format" => "YYYY-MM-DD HH:mm:ss" , ] , "fieldID" => $ this -> prefix . "expires_at" , "tabID" => trans ( "General" ) , "label" => trans ( "HCGalleries::galleries.expires_at" ) , ] , [ "type" => "resource" , "fieldID" => $ this -> prefix . "images" , "tabID" => trans ( "Resources" ) , "uploadURL" => route ( "admin.api.resources" ) , "viewURL" => route ( "resource.get" , [ '/' ] ) , "sortable" => 1 , ] , ] ; }
New form structure

@return array
New form structure