Answers for "laravel collection toQuery"

0

laravel collection toQuery

use App\Models\User;

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

$users->toQuery()->update([
    'status' => 'Administrator',
]);
Posted by: Guest on July-24-2021

Browse Popular Code Answers by Language