Closed cawecoy closed 4 years ago
This is a normal behaviour because this package works as an eloquent
table builder.
In your case, you should do this :
$table->column('full_name')->searchable(null, ['name', 'surname']);
However, in your case, I think I would simply add 2 columns because I don't see the real benefit to regroup name and surname and it would provide more sorting options :
table->column('name')->sortable()->searchable();
table->column('surname')->sortable()->searchable();
Hi.
When I try to search users' name and surname together (like "Cawe Coy Rodrigues Marega" where
users.name = 'Cawe Coy'
andusers.surname = 'Rodrigues Marega'
) I get "No results were found."I also tried the code below (it might be the best solution), but it throws an error:
Same for the codes below:
How can I search concatenated columns?