fix file validation check in validator.
This commit is contained in:
parent
472e377b02
commit
09b4471a5d
|
@ -219,10 +219,6 @@ protected function validate_required($attribute, $value)
|
|||
{
|
||||
return false;
|
||||
}
|
||||
elseif (is_array($value) and count($value) == 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
elseif ( ! is_null(Input::file($attribute)) and $value['tmp_name'] == '')
|
||||
{
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue