2017年11月29日
摘要: firstOrCreate/ firstOrNew# 还有两种其它方法,你可以用来通过属性批量赋值创建你的模型:firstOrCreate 和firstOrNew。firstOrCreate 方法将会使用指定的字段/值对,来尝试寻找数据库中的记录。如果在数据库中找不到模型,则会使用指定的属性来添加一 阅读全文
posted @ 2017-11-29 14:28 小帅豹 阅读(769) 评论(0) 推荐(0)
摘要: 参考地址:https://github.com/johnlui/Learn-Laravel-5/issues/16 阅读全文
posted @ 2017-11-29 14:24 小帅豹 阅读(184) 评论(0) 推荐(0)
摘要: 参考地址:https://d.laravel-china.org/docs/5.5/eloquent#mass-assignment 阅读全文
posted @ 2017-11-29 14:11 小帅豹 阅读(293) 评论(0) 推荐(0)