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.
Relationship definitions
For example imagine we have 3 models - Configuration
, EngineType
and CarBrand
. For the sake of simplicity the linkage goes as follows:
Configuration::class
belongs to anEngineType::class
EngineType::class
belongs to aCarBrand::class