juliobitencourt's avatar

Error when inviting members for teams in jetstream 2

I'm getting this binding resolution error after inviting a new member to a team in Jetstream 2

Illuminate\Contracts\Container\BindingResolutionException
Target [Laravel\Jetstream\Contracts\InvitesTeamMembers] is not instantiable.

I've followed the Jetstream 2 Upgrade Guide. https://github.com/laravel/jetstream/blob/2.x/UPGRADE.md

The error is fixed by adding this class to the boot method of the JetstreamServiceProvider

Jetstream::inviteTeamMembersUsing(InviteTeamMember::class);

Shouldn't these settings be covered by the Upgrade guide mentioned above?

0 likes
3 replies
PaulMaxOS's avatar

Hmm if that's really the case why don't you add an issue on the repo or create a PR that covers this? I don't think that this drops all the way down to Taylor...

1 like
juliobitencourt's avatar

Thanks! I thought about adding an issue but I want to make sure that's the case first!

PaulMaxOS's avatar

Well, I haven’t tried it out myself. I just meant, that this is probably something that should be answered over there.

And it looks a bit like that your solution was forgotten as they do the same for the removal of team members. That was actually added to the upgrade guide.

1 like

Please or to participate in this conversation.