How to use Repeater in RelationManager form with MorpTo model
Let's say Employee can be transfered to different departments with new role etc. In my model Transfer, which is many to many relationship. Fiels: transfer_type, from_id, to_id, and employee_id. Transfer_type will keep the Model name the type to change eg Models\Position, Models\Department etc. and from_id to old id of that model type. Since when changes, it changes the same time, I would like a repeater form to do this at once. However, In one save action, it will create multiple reocrds in transfers table. It does not create one record with json column type. I wonder that how I could do this. I type with relationship, but it seems confuse, in RelationManager is already a relationship of Employee. #Repeater #RelationManager
0 Replies