This may just be a typo in your post, but are you calling setGroupMembership as a function or a property?
Whoops, yes typo in the post. Calling setGroupMembership() won't work. Perhaps because it's not in the interface? Is it bad practice to try to add to eloquent models?
I got it to work now apparently there is nothing stopping us from doing it. But still wondering if that is bad practice... It's all data and it is in the data layer but it feels "hacky" doing it.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community