#->searchable() issues

1 messages · Page 1 of 1 (latest)

rich aspen
#

With the text column:
TextColumn::make('student.account.name')->label('Name')->searchable(),

I am getting the error

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'account' in 'where clause'

Also, name isn't a column in the DB, so ideally I want it to be searchable by 'name_first' and 'name_last'.

->searchable(['name_first', 'name_last']) also doesn't work.

Any ideas how I can make this work, TYIA.

austere nexusBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution