Im trying to select only specific attributes on the many-to-many relation users, just like in one-to-one. But using select() on belongsToMany
users
select()
belongsToMany
According to Taylor Otwell it is not currently possible: https://github.com/laravel/laravel/issues/2679
I have tried to use a lists('user.email') at the end of the query but I can't make it work.
lists('user.email')