@@ -28,7 +28,8 @@ trait HasTeamsFeatures
2828
2929 public string $ teamInvitationModel = TeamInvitation::class;
3030
31- public Closure |bool $ hasTeamFeature = false ;
31+ public Closure | bool $ hasTeamFeature = false ;
32+
3233 public string $ tenantSlug = 'slug ' ;
3334
3435 public ?Closure $ acceptTeamInvitation = null ;
@@ -37,12 +38,13 @@ public function hasTeamsFeatures(): bool
3738 {
3839 return $ this ->evaluate ($ this ->hasTeamFeature ) === true ;
3940 }
41+
4042 public function getTenantSlug (): string
4143 {
4244 return $ this ->tenantSlug ;
4345 }
4446
45- public function teams (Closure | bool $ condition = true , ?Closure $ acceptTeamInvitation = null , string $ tenantSlug = 'slug ' ): static
47+ public function teams (Closure | bool $ condition = true , ?Closure $ acceptTeamInvitation = null , string $ tenantSlug = 'slug ' ): static
4648 {
4749 $ this ->hasTeamFeature = $ condition ;
4850
@@ -63,7 +65,7 @@ public function getTeamRolesAndPermissions(): array
6365 public function teamsRoutes (): array
6466 {
6567 return [
66- Route::get ('/team-invitations/{invitation} ' , fn ($ invitation ) => $ this ->acceptTeamInvitation === null
68+ Route::get ('/team-invitations/{invitation} ' , fn ($ invitation ) => $ this ->acceptTeamInvitation === null
6769 ? $ this ->defaultAcceptTeamInvitation ($ invitation )
6870 : $ this ->evaluate ($ this ->acceptTeamInvitation , ['invitationId ' => $ invitation ]))
6971 ->middleware (['signed ' ])
@@ -108,7 +110,7 @@ public function roleModel(): string
108110 return $ this ->roleModel ;
109111 }
110112
111- public function defaultAcceptTeamInvitation (string | int $ invitationId ): RedirectResponse
113+ public function defaultAcceptTeamInvitation (string | int $ invitationId ): RedirectResponse
112114 {
113115 $ model = Jetstream::plugin ()->teamInvitationModel ();
114116
0 commit comments