getInputHandler()->post($index, $defaultValue); return empty($value) ? null : $value->getValue(); } public static function patch(string $index, $defaultValue = null) { $value = Request::request()->getInputHandler()->post($index, $defaultValue); return empty($value) ? null : $value->getValue(); } public static function get(string $index, $defaultValue = null) { $value = Request::request()->getInputHandler()->get($index, $defaultValue); return empty($value) ? null : $value->getValue(); } public static function file(string $index, $defaultValue = null) { $value = Request::request()->getInputHandler()->file($index, $defaultValue); return empty($value) ? null : $value->getValue(); } }