Palzin Track
Get 15% off with code PTRACKSIGNUP15 

Laravel Diary Logo

Laravel Collection Public API: where

The where method in Laravel allows developers to filter a collection based on a key-value pair. It returns a new collection with items that match the given criteria. The method supports various operators such as equality, inequality, and comparisons. In older versions of Laravel, the filter method can be used for similar functionality.