diff --git a/src/Tools/Utils.php b/src/Tools/Utils.php index b618d6b9..5643a7a0 100644 --- a/src/Tools/Utils.php +++ b/src/Tools/Utils.php @@ -199,6 +199,7 @@ public static function getModelFactory(string $modelName, array $states = [], ar foreach ($relations as $relation) { // Support nested relations; see https://github.com/knuckleswtf/scribe/pull/364 for a detailed example + // Example: App\Models\Author with=posts.categories $relationChain = explode('.', $relation); $relationVector = array_shift($relationChain);