Answers for "how to update laravel row"

PHP
0

how to update all row in laravel

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

Model::query()->update(['confirmed' => 1]);
Posted by: Guest on February-07-2021
4

laravel update

$flight = App\Models\Flight::find(1);

$flight->name = 'New Flight Name';

$flight->save();
Posted by: Guest on September-25-2020

Code answers related to "how to update laravel row"

Browse Popular Code Answers by Language