Laravel Collection Public API: lists
The lists method in Laravel is an alias of the pluck method. It retrieves a list of values from a collection. You can specify a property to become the value and another property to become the key in the resulting collection. There is also an example provided demonstrating the usage of the lists method to retrieve product names and versions...