How to update multiple rows from a single query using eloquent/fluent?
问题 I was learning about How to insert multiple rows from a single query using eloquent/fluent and I found the answer here Can somebody share any documentation about how to update bulk rows in single query? My queries are below. Update tblrole set role = 'Super Admin' where RoleID = 1; Update tblrole set role = 'Super Admin A' where RoleID = 2; Update tblrole set role = 'Super Admin B' where RoleID = 3; Update tblrole set role = 'Super Admin C' where RoleID = 4; 回答1: You cannot do anything like