Add relation in select menu
Hey folks, i have 2 models coupons and users and each coupons belongsTo one user and each user have firstname and surname so i want to create a select menu contain users firstname and surname i tried to use this
but it keep return null in create and return coupon record not user in edit
but it keep return null in create and return coupon record not user in edit
Solution
@Neamix you should use
Here's the example from one of our tutorials:
getOptionLabelFromRecordUsing()Here's the example from one of our tutorials: