From 6a001e403b65567be4089e26ab18bd4f23dd2216 Mon Sep 17 00:00:00 2001 From: shalvah Date: Tue, 16 Nov 2021 10:59:19 +0100 Subject: [PATCH] Update comment --- src/Tools/Utils.php | 1 + 1 file changed, 1 insertion(+) 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);