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