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()
Was this page helpful?