nova-searchable-select
nova-searchable-select copied to clipboard
Label is ignoring name() function on nova resource
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(),
Same Issue here. I have the same problem. Has there been any update about this problem?