Skip to content

Commit

Permalink
Merge pull request #496 from Laravel-Backpack/relation-field-attr
Browse files Browse the repository at this point in the history
Add `attribute` in relationship field pivot select example
  • Loading branch information
pxpm authored Aug 14, 2023
2 parents d10a411 + cbdddeb commit eedc96c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 6.x/crud-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -1793,6 +1793,7 @@ CRUD::field([
// you can use the same configurations you use in any relationship select
// like making it an ajax, constraining the options etc.
'pivotSelect'=> [
// 'attribute' => "title", // attribute on model that is shown to user
'placeholder' => 'Pick a company',
'wrapper' => [
'class' => 'col-md-6',
Expand Down

0 comments on commit eedc96c

Please sign in to comment.