我在研究Laravel发电机。每件事对我都是完美的。我的要求是在数据表的标题中显示“.。
private function getColumns()负责显示标头,但当我使用"Dept.No"时,它将显示在datatbale "Dept No“中。“我想要”还有。
发布于 2017-12-12 12:30:29
protected function getColumns()
{
return [
'id' => ['title' => 'Código'],
'nome' => ['title' => 'Nome do Produto'],
'grupo' => ['title' => 'Grupo'],
'estoque' => ['title' => 'Estoque'],
'preco' => ['title' => 'Preço de Venda'],
'custo' => ['title' => 'Preço de Custo'],
'ativo' => ['title' => 'Ativo?'],
'created_at' => ['title' => 'Dt. Cadastro']
];
}https://stackoverflow.com/questions/42116299
复制相似问题