Setting relationship name for attach action

I have a resource called NotifiableEvent, it has a many to many with NotifiableUsers.

I have a relationmanager on the Event resource, which points to NotifiableUsers, but the relation in the model is defined as 'events', but I get this error when I click the default attach action Call to undefined method App\Models\NotifiableUsers::notifiableEvents()

How can I tell it to look for the 'events' defined relation function instead?
Was this page helpful?