Skip to content

Custom display name, Different column to display not showing #121

@amitsingh9thjan

Description

@amitsingh9thjan

NovaBelongsToDepend::make('Shows', 'shows', \App\Nova\Shows::class)
->placeholder('-- Select Show --') // Add this just if you want to customize the placeholder
->options(Shows::all())
->display(function($shows){
return $shows->title . ' - ' . $shows->en_title;
}),

I'm trying this but it's not showing display attribute content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions