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:
2 Replies
Thijmen
Thijmen12mo ago
Where do you set team_id in this code?
Want results from more Discord servers?
Add your server