摘要: 喜欢就要表白,这样才能知道你是几号备胎。 Scopes 允许您轻松地在模型中复用查询逻辑。要定义 scope,只需在模型方法的前面加上 scope class User extends Model { public function scopePopular($query) { return $qu 阅读全文
posted @ 2022-10-18 09:03 方达达 阅读(4) 评论(0) 推荐(0) 编辑