Use pluck rather than lists

This commit is contained in:
James Brooks 2016-05-09 20:42:04 +01:00
parent 651edcc7c5
commit aec2ef0198

View File

@ -53,7 +53,7 @@ class ComponentPresenter extends BasePresenter implements Arrayable
*/
public function tags()
{
return $this->wrappedObject->tags->lists('name', 'slug');
return $this->wrappedObject->tags->pluck('name', 'slug');
}
/**