$object->getId(), 'current_step' => $object->getCurrentStep(), ]; } /** * @param string $type * @return array */ protected function rules(?string $type = 'POST'): array { return [ 'id'=> 'required|numeric', 'current_step'=> 'required', ]; } /** * @return array */ protected function messages(): array { return []; } }