'bool', ]; /** * 仅查询IOS */ public function scopeOnlyIos($query) { return $query->where('cate', 1); } /** * 仅查询Android */ public function scopeOnlyAndroid($query) { return $query->where('cate', 2); } /** * 仅查询商家端 */ public function scopeOnlyMerchant($query) { return $query->where('cate', 3); } }