📜  laravel 集合 toQuery - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:26.554000             🧑  作者: Mango

代码示例1
use App\Models\User;

$users = User::where('status', 'VIP')->get();

$users->toQuery()->update([
    'status' => 'Administrator',
]);