Laravel 8 filled() {#collection-method}
2021-07-19 10:39 更新
filled 函数返回是否不为「空」:
filled(0);
filled(true);
filled(false);
// true
filled('');
filled(' ');
filled(null);
filled(collect());
// false 对于作用与 filled 相反的方法,可以查看 blank 方法。
以上内容是否对您有帮助:

免费 AI IDE


更多建议: