No way to do that as belongsToMany always asks for a primary key of the related model, unless you change pk to 'email' on that model.
jarektkaczyk said:
No way to do that as belongsToMany always asks for a primary key of the related model, unless you change pk to 'email' on that model.
That's what I suspected. Thanks.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community