This PR fixes an issue where the custom attribute was not working correctly on the Relationship form field. The code has been modified to retrieve the selected values using the get() method before plucking the label and key. This ensures that the custom attribute works as expected.
Fix custom attribute not working on Relationship
Implement a solution from https://stackoverflow.com/a/47781344/10861398.
This PR fixes an issue where the custom attribute was not working correctly on the Relationship form field. The code has been modified to retrieve the selected values using the
get()
method before plucking the label and key. This ensures that the custom attribute works as expected.Fixes #5441