Summer Sale! All accounts are 50% off this week.

defayeke's avatar

Team name change not honoured for routes

I think there may be a bug in which the Spark::referToTeamAs('something'); definition in your SparkServiceProvider is not being honoured for routes, despite the use of $pluralTeamString = str_plural(Spark::teamString());. Any fix for this?

0 likes
2 replies
saqueib's avatar

What Spark version you are using? I am on spark 5.0 and it is working for me.

KamalKhan's avatar

Make sure you change the team name in the register method of the SparkServiceProvider instead of the booted method.

public function register()
{
    Spark::referToTeamAs('singular');
}

Please or to participate in this conversation.