© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
11 replies
alexanderkroneis

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
name
as
$recordTitleAttribute
$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';
class CompanyResource extends Resource
{
    protected static ?string $model = Company::class;

    protected static ?string $recordTitleAttribute = 'name';
Getting started - Panel Builder - Filament
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Cannot use accessor for record title in global search
FilamentFFilament / ❓┊help
3y ago
badge in global search
FilamentFFilament / ❓┊help
12mo ago
Global search
FilamentFFilament / ❓┊help
2y ago
Global Search
FilamentFFilament / ❓┊help
3y ago