Use Accessor in Global Search

Hi,

the documentation says that we can use an accessor to feed the global search (see https://filamentphp.com/docs/3.x/panels/resources/getting-started#record-titles). I just tried that by using name as $recordTitleAttribute and it queries the table and does not use the accessor. Is there something missing in the docs or is there a bug?

class CompanyResource extends Resource
{
    protected static ?string $model = Company::class;

    protected static ?string $recordTitleAttribute = 'name';
Was this page helpful?