-
I've got a fairly simple table that looks like this
The main thing is here is we are collecting some separate address fields into one column
Into However, during the search, it is trying to search a non-existent field called Using this
Am I missing something obvious? Full component
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Search uses that column, you can override the search functionality with a closure: https://github.com/rappasoft/laravel-livewire-tables/wiki/Using-the-built-in-searching I'm assuming you'll get the same error if you try to sort, because address doesn't exist but you're not telling it what to use otherwise. |
Beta Was this translation helpful? Give feedback.
-
🎆 Removing Much appreciated. |
Beta Was this translation helpful? Give feedback.
address
comes from the column because you didn't specify.Column::make( 'Address' )
will assume a column name ofaddress
unless you pass a second parameter.Search uses that column, you can override the search functionality with a closure: https://github.com/rappasoft/laravel-livewire-tables/wiki/Using-the-built-in-searching
I'm assuming you'll get the same error if you try to sort, because address doesn't exist but you're not telling it what to use otherwise.