app/Http/Controllers/Settings/TeamController.php
protected function validateTeamMemberUpdate(Request $request, $team, $user)
    {
        if (Spark::$validateTeamMemberUpdatesWith) {
            $this->callCustomValidator(
                Spark::$validateTeamMemberUpdatesWith, $request, [$team, $user]
            );
        } else {
            $availableRoles = implode(
                ',', array_except(array_keys(Spark::roles()), 'owner')
            );

            $this->validate($request, [
                'role' => 'required|in:'.$availableRoles
            ]);
        }
    }
protected function validateTeamMemberUpdate(Request $request, $team, $user)
    {
        if (Spark::$validateTeamMemberUpdatesWith) {
            $this->callCustomValidator(
                Spark::$validateTeamMemberUpdatesWith, $request, [$team, $user]
            );
        } else {
            $availableRoles = implode(
                ',', array_except(array_keys(Spark::roles()), 'owner')
            );

            $this->validate($request, [
                'role' => 'required|in:'.$availableRoles
            ]);
        }
    }
Validate a team update request.

@param  \Illuminate\Http\Request  $request
@return void