Save relationship with pivot attributes/columns
I need some help.
How can i conditionally fill the pivot attribute/column when creating a Model from Select field using the createOptionForm.
here is what i am trying.
When the relationship is saved, I need to set the is_approved column set to true/false based on a condition.
Thanks.
4 Replies
Also, i need to filter the Select options based on the pivot condition.
I have tried to chain following method on Select field but it does not work:
try
$state
instead of $tags
Hey Dan, I searched for
saveRelationshipsUsing
and found your helpful reply on a post.
This is what worked for me:
Thanks a ton Dan!
I love you!no worries :) just remember to be careful with those parameter names
because we allow you to use parameters in any order to get what you need, we are strict on the names.