nova-searchable-select icon indicating copy to clipboard operation
nova-searchable-select copied to clipboard

Label is ignoring name() function on nova resource

Open gldrenthe89 opened this issue 5 years ago • 1 comments

It only shows an id of the search results. this is because the package only look at $title. i can change this to use the column 'name' eg. but that is nog enough. I use the function name() on the nova resource. But this is ignored

/** * Get the value that should be displayed to represent the resource. * * @return string */ public function title() { if(isset($this->group_id)) { return $this->group->name.' - '.$this->name; } return $this->name; }

SearchableSelect::make('Attribute') ->resource('attributes') ->max(10) ->label('name') ->value('id') ->displayUsingLabels(),

gldrenthe89 avatar Nov 26 '19 16:11 gldrenthe89

Same Issue here. I have the same problem. Has there been any update about this problem?

YarinceP avatar Feb 06 '20 20:02 YarinceP