Bulk update models with differents values in Laravel
You need to update many rows at once in a database using Laravel query builder or Eloquent? Read this article to learn about a trick to improve your application efficiency.
Rebase a query builder after filtering an Eloquent Collection
To retrieve the Query Builder after filtering the results: you can use `->toQuery()`. The method internally use the first model of the collection and a `whereKey` comparison on the Collection models.