© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago
manojhl 🇮🇳

Custom model attributes in model

I wanted to get full_name from model user which is an custom attribute and not database column,

Anyone has ideas on how to get full_name attributes as the title?

SelectFilter::make('user')
    ->relationship(
        'user',
        'first_name',
        fn ($query) => $query->whereHas('requestFeatures')
    )->searchable()->preload()
SelectFilter::make('user')
    ->relationship(
        'user',
        'first_name',
        fn ($query) => $query->whereHas('requestFeatures')
    )->searchable()->preload()
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

Displaying Custom Model attributes in a table
FilamentFFilament / ❓┊help
17mo ago
Building Custom Field That Requires 2 Model Attributes
FilamentFFilament / ❓┊help
2y ago
Show hidden model attributes
FilamentFFilament / ❓┊help
3y ago
Create custom resource view blade page and access model attributes
FilamentFFilament / ❓┊help
2y ago