Replies: 4 comments 2 replies
-
Hello @faridsa, have you tried the label method? https://rappasoft.com/docs/laravel-livewire-tables/v2/columns/available-methods#content-labels like this: Column::make('Full Name')
->label(
fn($row, Column $column) => $row->full_name
), also may need on the model: protected $appends = [ 'full_name' ]; For your actions you can also try: Column::make('Actions')
// Note: The view() method is reserved for columns that have a field
->label(
fn($row, Column $column) => view('my.actions.view')->withRow($row)
), |
Beta Was this translation helpful? Give feedback.
-
Also, are you using the column selection dropdown next to the per page dropdown in upper right above table, and do you have another table in your project with an |
Beta Was this translation helpful? Give feedback.
-
I'm also struggling to do some really basic stuff since upgrading. I'm starting to wonder if this version is ready to be the default pulled branch? |
Beta Was this translation helpful? Give feedback.
-
Is there any update on this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello I'm using v.2.7.0 and trying 2 features that are frustrating me a lot, because results are not as expected.
where fullname is just a function in my model as
And it returns the expected value.
Now in v2 it fires and SQL error
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'estimates.fullname' in 'field list' (SQL: select `estimates`.`fullname` as `fullname`,
So trying to obtain it by other method, I went with format(), in this way (as documentation states)
And now it fires another SQL error
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'estimates.full_name' in 'field list' (SQL: select `estimates`.`full_name` as `full_name`,
So it makes me clear that any column name must match a database field, but if I use the following variation:
I have no errors now, but Full Name column only returns name
Column::make('Actions', ''),
But now in v2, that fires and SQL error like:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'advises.actions' in 'field list'
So checking in the docs I found a function that should be exactly what I need ButtonGroupColumn()
But now the column Actions simply doesn't renders
Beta Was this translation helpful? Give feedback.
All reactions