Skip to content

PHP code snippet – How to update all row in laravel?

DB::table('table')->update(['column' => 1]);

Model::query()->update(['confirmed' => 1]);
See also  How to convert array to string with commas in PHP?
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.