diff --git a/laravel/input.php b/laravel/input.php index f08d7be8..94e14745 100644 --- a/laravel/input.php +++ b/laravel/input.php @@ -205,8 +205,7 @@ class Input { */ public static function has_file($key) { - $file = static::file($key); - return ! empty($file['tmp_name']); + return ! is_null(static::file("{$key}.tmp_name")); } /**