Answers for "update a row laravel"

PHP
0

eloquent update row response

DB::table('users')
            ->where('id', 1)
            ->update(['votes' => 1]);
Posted by: Guest on August-20-2020
1

update query laravel

$update = \DB::table('student') ->where('id', $data['id']) ->limit(1) ->update( [ 'name' => $data['name'], 'address' => $data['address'], 'email' => $data['email'], 'contactno' => $data['contactno'] ]);
Posted by: Guest on January-09-2021

Browse Popular Code Answers by Language