Skip to content

Conversation

@inkarnation
Copy link
Contributor

Since #1587, TeamMemberManager::cancelTeamInvitation() has team_id hardcoded as the foreign key. This causes issues when customizing the TeamInvitation model to use different naming conventions (e.g., company_id).

I've replaced the hardcoded string with a dynamic lookup that resolves the key name directly from the model's relationship.

@taylorotwell taylorotwell merged commit 96361c6 into laravel:5.x Dec 12, 2025
15 checks passed
@inkarnation inkarnation deleted the remove-hardcoded-foreignkey branch December 12, 2025 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants