Image now a file
This commit is contained in:
@@ -4,17 +4,18 @@ 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);
|
||||
return request()->getInputHandler()->post($index, $defaultValue);
|
||||
}
|
||||
|
||||
public static function get($index, $defaultValue = null)
|
||||
{
|
||||
return request()->getInputHandler()->get($index, $defaultValue);
|
||||
}
|
||||
|
||||
public static function file($index, $defaultValue = null)
|
||||
{
|
||||
return request()->getInputHandler()->file($index, $defaultValue);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user