fix array input has.

This commit is contained in:
Taylor Otwell 2013-03-28 15:35:09 -05:00
parent 88cde2c91d
commit c1a8b83574
1 changed files with 2 additions and 0 deletions

View File

@ -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)) !== '';
}