Closed oliverbj closed 4 years ago
Hi @kdion4891
Very nice project you have created here! I was wondering, is it possible to transform the data before serving it to the table?
For example, if I have a name column, I would like to make sure that the first character is always capitalized:
name
public function columns() { return [ Column::make('Name', 'first_name')->searchable()->sortable(), ]; }
How can I do so I can use ucfirst('first_name') for example?
ucfirst('first_name')
Nevermind, I figured out I could just use the $this->view() for this.
$this->view()
Or use an accessor in your model...
Hi @kdion4891
Very nice project you have created here! I was wondering, is it possible to transform the data before serving it to the table?
For example, if I have a
name
column, I would like to make sure that the first character is always capitalized:How can I do so I can use
ucfirst('first_name')
for example?