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()
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server