pluck
Pluck is an eloquent helper function for narrowing down your database queries and returning a collection of specific columns.
$item->getAllSubitems->pluck('title');
copy
Pluck is an eloquent helper function for narrowing down your database queries and returning a collection of specific columns.
$item->getAllSubitems->pluck('title');
copy