profile = $input['name']; $serverProvider->project_id = isset($input['global']) && $input['global'] ? null : $user->current_project_id; $serverProvider->save(); } public static function rules(): array { return [ 'name' => [ 'required', ], ]; } }