You can remove all falsy values from a Collection by calling filter() without any arguments

You can remove all falsy values from a Collection by calling filter() without any arguments

Laravel Collections tip. To remove all falsy values from the collection, simply call filter without any arguments ✨

We're writing a book, you can get it for free here.