update all rows in laravel code example
Example: how to update all row in laravel
DB::table('table')->update(['column' => 1]);
Model::query()->update(['confirmed' => 1]);
DB::table('table')->update(['column' => 1]);
Model::query()->update(['confirmed' => 1]);