<?php

return [
    "type"           => "documentTypes",
    "model"          => App\Models\DocumentType::class,
    "label"          => "Document Types",
    "label_singular" => "Document Type",
    "group"          => "content types",
    "order"          => FALSE,
    "search" => [
        "fields" => [
            "title",
        ],
        "parentRelationships" => [
            "document",
        ]
    ],
    "fields"         => [
        [
            "name"          => "title",
            "label"         => "Title",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ]
    ],
    "actions"        => [
        "edit", "order", "insert", "delete"
    ]
];
