A team invitation feature looks like an afternoon of work: make a row, email a link, add a member on click. The afternoon part is true. The bugs all live in the five percent around it - what happens when the link is forwarded, clicked twice, or clicked a month later, and what happens to the person who owns the team.
Here is a complete, small implementation in plain Laravel - no package - and the rules that keep the edges from biting.
Update, November 25, 2026: the kit this series is drawn from now ships the strict version of this flow: accepting an invitation requires a verified email address, the signed link opens a confirmation page (GET no longer mutates anything), and only the POST consumes the invitation. Consumption is one conditional delete statement rather than a check-then-act, and owners can revoke a pending invitation.…