You can remove all falsy values from a Collection by calling filter() without any arguments
- ·
- Telegram
- ·
- Newsletter
Laravel Collections tip. To remove all falsy values from the collection, simply call filter without any arguments ✨