/******PArametros Padroes******/ $parametersView = [ 'title' => 'Service x Item', 'route' => Route::current()->uri(), 'viewLocation' => 'painel', 'searchBy' => 'Description ', 'controller' => class_basename(Route::current()->controller) . '@index', 'fieldsProperties' => [ ["name" => "description", "label" => "Description", "type" => "text", "onlyView" => "true"], /*Caso texto*/ ["name" => "system", "label" => "Link to System:", "type" => "select", "value" => $valueSystem], /*Caso Select*/ ["name" => "description", "label" => "Term Description", "type" => "textarea", "cols" => 36, "rows" => "6","EnterPermitionKey"=>"EnterPermitionKey"], /**Text area com enter*/ ] ]; /*CASO EXISTA O PARAMETRO onlyView o campo é exibido apenas na lista, não sendo possível incluir ou alterar pelo modal. O valor do atributo é simbolico, a checagem é se o atributo existe*/ /******Parametros Adicionais******/ 'extraButton' => [ ["label" => "+Add Service", "btnRoute" => "servicetype"], ["label" => "Link Service x Item", "btnRoute" => "servicetypeitem"], ], 'extraActions' => [ ["icon" => "fas fa-tasks", "tooltip" => "Menu Itens", "iconRoute" => "useraccessprofile-menuitems"], ], ### Campo com relação do tipo polymorphic O tipo do campo deve ser "morph", isso ira gerar um link direto para o link de edição do id + type (Conforme o model salvo em campo_type) Exemplo: EmailGroupController #### campos multiplus select 2 referencia PlatformController.php - brands_id o valor do valuesLinked precisa ser string com ID separadas por virgula EX: 1,7,10 ["name" => "brands_id", "label" => "Brand", "type" => "select", 'value' => $reference, 'multiple'=>'multiple', 'valueslinked' => $valuesLinked],