Laravel 4 – Get Array of Attributes from Collection
Collections have a lists method similar to the method for tables described by @Gadoma. It returns an array containing the value of a given attribute for each item in the collection. To retrieve the desired array of names from my collection of tags I can simply use: $tags->lists(‘name’); Update: As of laravel 5.2 lists is … Read more