Solution:
You can use the lists()
function, described here
It will return an array with all the values of one property.
(Also you don’t need to create an instance to retrieve all users)
$usernames = User::lists('username');
If you’d like to have another column as key of your array (e.g. the id) do this:
$usernames = User::lists('username', 'id');
Don’t be worried about Laravel 5. Some things will change but many things will stay the same. Including everything about Eloquent and the DB querying in general (at least as far as I know)