laravel collection toQuery

28

use App\Models\User;

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

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

Comments

Submit
0 Comments