but we have an error on this query, call get() on int cuz update return number of affected rows, How do I do?
by the way scope toDoneBy is return multi records based on some where
@Sinnbeck ya exactly, the first solution I found was that so I thought there is another way to avoid two query, but you right there no way to did by single query
@FarhadMohammadi Sadly no. Mysql has no way of returning the ids of the rows being updated. So until that gets added to mysql, laravel cannot do so either