Concatenating two fields into one column using format() #1130
-
Hi! I have been trying to concatenate two fields into one column using the format() function for v2 of the datatable. However, I keep encountering an SQL error. Code Block: Column::make('Name')
->format(
fn($value, $row, Column $column) => $row->first_name . ' ' . $row->last_name
), Error:
|
Beta Was this translation helpful? Give feedback.
Answered by
lrljoe
Mar 30, 2023
Replies: 1 comment 6 replies
-
Use a label method on the column if the "name" field doesn't exist. |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
dmsatparam
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use a label method on the column if the "name" field doesn't exist.