Skip to content

Commit 727b694

Browse files
committed
Check arrays on Input::had. Closes #1988.
1 parent 6891fb7 commit 727b694

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

laravel/input.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ public static function except($keys)
160160
*/
161161
public static function had($key)
162162
{
163+
if (is_array(static::old($key))) return true;
164+
163165
return trim((string) static::old($key)) !== '';
164166
}
165167

0 commit comments

Comments
 (0)