Auto-fill team_id in create

What I am trying to do:

Auto-fill team_id column when creating a TeamInvitation

What I did:

Created a resource for TeamInvitation following the documentation. Tenany is setup for the Team model.

My issue/the error:

When creating a TeamInvitation, an exception occurs: https://flareapp.io/share/x7KweXY7

Code:
Was this page helpful?