[ 'model' => \Litecms\Location\Models\Location::class, 'table' => 'litecms_location_locations', 'hidden'=> [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'created_at', 'updated_at'], 'appends' => [], 'fillable' => ['parent_id', 'name', 'type', 'path', 'latitude', 'longitude', 'other_names'], 'translatables' => [], 'upload_folder' => 'location/location', 'uploads' => [ /* 'images' => [ 'count' => 10, 'type' => 'image', ], 'file' => [ 'count' => 1, 'type' => 'file', ], */ ], 'casts' => [ /* 'images' => 'array', 'file' => 'array', */ ], 'revision' => [], 'perPage' => '20', 'search' => [ 'name' => 'like', 'status', ] ], 'search' => [ ], 'list' => [ "parent_id" => [ "key" => "parent_id", "type" => "text", "label" => 'location::location.label.parent_id', 'sort' => true, 'roles' => [], ], "name" => [ "key" => "name", "type" => "text", "label" => 'location::location.label.name', 'sort' => true, 'roles' => [], ], "type" => [ "key" => "type", "type" => "text", "label" => 'location::location.label.type', 'sort' => true, 'roles' => [], ], "path" => [ "key" => "path", "type" => "text", "label" => 'location::location.label.path', 'sort' => true, 'roles' => [], ], "latitude" => [ "key" => "latitude", "type" => "text", "label" => 'location::location.label.latitude', 'sort' => true, 'roles' => [], ], "longitude" => [ "key" => "longitude", "type" => "text", "label" => 'location::location.label.longitude', 'sort' => true, 'roles' => [], ], "other_names" => [ "key" => "other_names", "type" => "text", "label" => 'location::location.label.other_names', 'sort' => true, 'roles' => [], ], ], 'form' => [ 'parent_id' => [ "element" => 'numeric', "type" => 'numeric', "label" => 'location::location.label.parent_id', "placeholder" => 'location::location.placeholder.parent_id', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'name' => [ "element" => 'text', "type" => 'text', "label" => 'location::location.label.name', "placeholder" => 'location::location.placeholder.name', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'type' => [ "element" => 'radios', "type" => 'radios', "label" => 'location::location.label.type', "placeholder" => 'location::location.placeholder.type', "rules" => '', "options" => function(){ return []; }, "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'path' => [ "element" => 'text', "type" => 'text', "label" => 'location::location.label.path', "placeholder" => 'location::location.placeholder.path', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'latitude' => [ "element" => 'text', "type" => 'text', "label" => 'location::location.label.latitude', "placeholder" => 'location::location.placeholder.latitude', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'longitude' => [ "element" => 'text', "type" => 'text', "label" => 'location::location.label.longitude', "placeholder" => 'location::location.placeholder.longitude', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'other_names' => [ "element" => 'text', "type" => 'text', "label" => 'location::location.label.other_names', "placeholder" => 'location::location.placeholder.other_names', "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], ], 'urls' => [ 'new' => [ 'url' => 'location/location/new', 'method' => 'GET', ], 'create' => [ 'url' => 'location/location/create', 'method' => 'GET', ], 'store' => [ 'url' => 'location/location', 'method' => 'POST', ], 'update' => [ 'url' => 'location/location', 'method' => 'PUT', ], 'list' => [ 'url' => 'location/location', 'method' => 'GET', ], 'delete' => [ 'url' => 'location/location', 'method' => 'DELETE', ], ], 'order' => [ 'created_at' => 'location::location.label.created_at', 'name' => 'location::location.label.name', 'status' => 'location::location.label.status', ], 'groups' => [ 'main' => 'location::location.groups.main', 'details' => 'location::location.groups.details', 'images' => 'location::location.groups.images', 'settings' => 'location::location.groups.settings', ], 'controller' => [ 'provider' => 'Litecms', 'package' => 'Location', 'module' => 'Location', ], 'actions' => [ 'copy' => [ 'type' => ['Details', 'List'], 'label' => 'location::location.action.copy', 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], 'permission' => ['location.location.copy', 'location.location.duplicate'], ], 'form' => [ 'count' => [ "element" => 'select', "type" => 'select', "label" => 'location::location.label.count', "placeholder" => 'location::location.placeholder.count', "options" => call_user_func(function () { return [ 1 => ['value' => 1, 'text' => 1], 2 => ['value' => 2, 'text' => 2], 3 => ['value' => 3, 'text' => 3], 4 => ['value' => 4, 'text' => 4], ]; }), "col" => "12", ], 'comment' => [ "element" => 'textarea', "type" => 'text', "required" => 'required', "label" => 'location::location.label.comment', "placeholder" => 'location::location.placeholder.comment', "col" => "12", ], ], ], 'empty' => [ 'type' => ['List', 'Details'], 'label' => 'location::location.action.empty', 'roles' => [ 'user' => ['superuser'], ], ], ] ];