fix array input has.
This commit is contained in:
parent
88cde2c91d
commit
c1a8b83574
|
@ -40,6 +40,8 @@ public static function all()
|
|||
*/
|
||||
public static function has($key)
|
||||
{
|
||||
if (is_array(static::get($key))) return true;
|
||||
|
||||
return trim((string) static::get($key)) !== '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue