Laravel 查询或写入Enum字段出错的bug解决办法
查询:
if($request->filled('type')){ $where[] = ['type', strval(intval($request->input('type')))]; }
写入:
$model->type = '1'
博 主 :夏秋初
地 址 :https://www.cnblogs.com/xiaqiuchu/p/11530949.html
如果对你有帮助,可以点一下 推荐 或者 关注 吗?会让我的分享变得更有动力~
转载时请带上原文链接,谢谢。
地 址 :https://www.cnblogs.com/xiaqiuchu/p/11530949.html
如果对你有帮助,可以点一下 推荐 或者 关注 吗?会让我的分享变得更有动力~
转载时请带上原文链接,谢谢。