Answers for "laravel db query insert or update"

PHP
1

laravel where update query

DB::table('users')
        ->where('id', $id)
        ->update([
            'status'     => 1
        ]);
Posted by: Guest on August-25-2021
0

laravel db::query update

DB::table('user')->where('email', $userEmail)->update(array('member_type' => $plan));
Posted by: Guest on November-19-2020

Browse Popular Code Answers by Language