You can convert Eloquent Collections back to a Query Builder instance
- ·
- Telegram
- ·
- Newsletter
A tiny tip about #laravel eloquent.
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.