lundi 7 décembre 2020

Laravel Eloquent: Get a list of all values from one key [duplicate]

I have a table that has the following columns:

User_id, User_access_level, User_name

I would like to get a result set with keys as the different access levels and values as arrays of usernames in each access level.

Thanks in advance!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire