Skip to content

Commit

Permalink
Updated Catalog Items to show the caption save when searching
Browse files Browse the repository at this point in the history
  • Loading branch information
KaniRobinson committed Sep 10, 2024
1 parent bc7a322 commit e411b98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Nova/CatalogItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function fields(NovaRequest $request)
BelongsTo::make('Page', 'page', CatalogPage::class)
->sortable()
->searchable()
->displayUsing(fn ($page) => sprintf('%s (%s)', $page->caption, $page->caption_save))
->rules('required', 'exists:catalog_pages,id'),

Text::make('Item IDs', 'item_ids')
Expand Down

0 comments on commit e411b98

Please sign in to comment.