Accessors (Getter) & Mutators (Setter) On a Pivot Table in Laravel

后端 未结 3 630
南笙
南笙 2021-02-08 16:24

I have a pivot table that connects users to workspaces. On the pivot table, I also have a column for role, which defines the users role for that workspace. Can I provide Accesso

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-08 16:47

    Its impossible to use setters, will not affect pivot table... make the change in the controller instead.

提交回复
热议问题