Using pluck() method on nested relationships.
Normally in Laravel querying a given model with its relationships allows you to use dot notation to reach nested ones.
For example imagine we have 3 models -
CarBrand. For the sake of simplicity the linkage goes as follows:
Configuration::classbelongs to an
EngineType::classbelongs to a