I would like to transform the result of an Eloquent query into a single array of strings.
What my query currently gives: (I apply a ->toArray() to initial query to get that :)
array:2 [▼
0 => array:1 [▼
"title" => "User"
]
1 => array:1 [▼
"title" => "Premium"
]
]
What I would like it to give me:
['User', 'Premium'];
My query :
Rank::where('strength', '<', $this->rank->strength)->select('title')->get();
Thanks in advance