$user = new User();$data = [ 'name'=>'Lu Bu', 'password'=>'888'];//Execute the add operation$result = $user->save($data);
Field 'id' doesn't have a default value
This is the way to add it
Don’t you have to write a where condition to update the data? It definitely won’t work like this
This is the way to add it
Don’t you have to write a where condition to update the data? It definitely won’t work like this