app/Http/Controllers/Settings/TeamController.php
protected function validateTeamUpdate(Request $request, $team)
    {
        if (Spark::$validateTeamUpdatesWith) {
            $this->callCustomValidator(
                Spark::$validateTeamUpdatesWith, $request, [$team]
            );
        } else {
            $this->validate($request, [
                'name' => 'required|max:255',
            ]);
        }
    }
protected function validateTeamUpdate(Request $request, $team)
    {
        if (Spark::$validateTeamUpdatesWith) {
            $this->callCustomValidator(
                Spark::$validateTeamUpdatesWith, $request, [$team]
            );
        } else {
            $this->validate($request, [
                'name' => 'required|max:255',
            ]);
        }
    }
Validate a team update request.

@param  \Illuminate\Http\Request  $request
@param  \Laravel\Spark\Teams\Team
@return void