Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Nov 16, 2021
1 parent 9264b5a commit 6a001e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Tools/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6a001e4

Please sign in to comment.