[ 'model' => \Bixo\Download\Models\Download::class, 'table' => 'bixo_download_downloads', 'hidden'=> [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'created_at', 'updated_at'], 'appends' => [], 'fillable' => ['user_id', 'file', 'module', 'signed_url', 'status', 'downloaded_at', 'downloaded_by'], 'translatables' => [], 'upload_folder' => 'download/download', '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' => [ [ "key" => "file", "type" => "text", "label" => 'download::download.label.file', 'sort' => true, 'roles' => [], ], [ "key" => "module", "type" => "text", "label" => 'download::download.label.module', 'sort' => true, 'roles' => [], ], [ "key" => "signed_url", "type" => "text", "label" => 'download::download.label.signed_url', 'sort' => true, 'roles' => [], ], [ "key" => "downloaded_at", "type" => "text", "label" => 'download::download.label.downloaded_at', 'sort' => true, 'roles' => [], ], [ "key" => "downloaded_by", "type" => "text", "label" => 'download::download.label.downloaded_by', 'sort' => true, 'roles' => [], ], ], 'form' => [ [ "key" => 'file', "element" => 'text', "type" => 'text', "label" => 'download::download.label.file', "placeholder" => 'download::download.placeholder.file', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'module', "element" => 'text', "type" => 'text', "label" => 'download::download.label.module', "placeholder" => 'download::download.placeholder.module', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'signed_url', "element" => 'text', "type" => 'text', "label" => 'download::download.label.signed_url', "placeholder" => 'download::download.placeholder.signed_url', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'downloaded_at', "element" => 'date_time_picker', "type" => 'date_time_picker', "label" => 'download::download.label.downloaded_at', "placeholder" => 'download::download.placeholder.downloaded_at', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'downloaded_by', "element" => 'numeric', "type" => 'numeric', "label" => 'download::download.label.downloaded_by', "placeholder" => 'download::download.placeholder.downloaded_by', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], ], 'urls' => [ 'new' => [ 'url' => 'download/download/new', 'method' => 'GET', ], 'create' => [ 'url' => 'download/download/create', 'method' => 'GET', ], 'store' => [ 'url' => 'download/download', 'method' => 'POST', ], 'update' => [ 'url' => 'download/download', 'method' => 'PUT', ], 'list' => [ 'url' => 'download/download', 'method' => 'GET', ], 'delete' => [ 'url' => 'download/download', 'method' => 'DELETE', ], ], 'order' => [ 'created_at' => 'download::download.label.created_at', 'name' => 'download::download.label.name', 'status' => 'download::download.label.status', ], 'groups' => [ [ 'icon' => "mdi:account-supervisor-outline", 'name' => "download::download.groups.main", 'group' => "main.main", 'title' => "download::download.groups.main", ], [ 'icon' => "fe:home", 'name' => "download::download.groups.details", 'group' => "main.details", 'title' => "download::download.groups.details", ], 'images' => [ 'icon' => "fe:home", 'name' => "download::download.groups.images", 'group' => "main.images", 'title' => "download::download.groups.images", ], 'settings' => [ 'icon' => "fe:home", 'name' => "download::download.groups.settings", 'group' => "main.settings", 'title' => "download::download.groups.settings", ] ], 'controller' => [ 'provider' => 'Bixo', 'package' => 'Download', 'module' => 'Download', ], 'actions' => [ 'copy' => [ 'type' => ['Details', 'List'], 'label' => 'download::download.action.copy', 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], 'permission' => ['download.download.copy', 'download.download.duplicate'], ], 'form' => [ 'count' => [ "element" => 'select', "type" => 'select', "label" => 'download::download.label.count', "placeholder" => 'download::download.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" => 'download::download.label.comment', "placeholder" => 'download::download.placeholder.comment', "col" => "12", ], ], ], 'empty' => [ 'type' => ['List', 'Details'], 'label' => 'download::download.action.empty', 'roles' => [ 'user' => ['superuser'], ], ], 'section' => [ 'type' => ['Group'], 'api_url' => '', 'action' => 'list', 'label' => 'download::download.action.section', 'store' => 'main.units', 'group' => 'main.units' ], ] ];