21 lines
419 B
PHP
21 lines
419 B
PHP
<?php
|
|
|
|
namespace Khofmann\Input;
|
|
|
|
class Input
|
|
{
|
|
private static function input($index = null, $defaultValue = null, ...$methods)
|
|
{
|
|
if ($index !== null) {
|
|
return request()->getInputHandler()->value($index, $defaultValue, ...$methods);
|
|
}
|
|
|
|
return request()->getInputHandler();
|
|
}
|
|
|
|
public static function post($index, $defaultValue = null)
|
|
{
|
|
return input()->post($index, $defaultValue);
|
|
}
|
|
}
|