阅读(3203)
赞(11)
Laravel 8 intersect($items)
2021-07-08 09:44:56 更新
intersect
方法返回给定集合中也存在的所有模型:
use AppModelsUser;
$users = $users->intersect(User::whereIn('id', [1, 2, 3])->get());
intersect
方法返回给定集合中也存在的所有模型:
use AppModelsUser;
$users = $users->intersect(User::whereIn('id', [1, 2, 3])->get());
Copyright©2023 字节宝| |
违法和不良信息举报电话:|举报邮箱:2283035678@qq.com