Skip to content

Commit 734a998

Browse files
Merge pull request #7 from georgehanson/patch-1
Add docblock to shouldAutoLoad method
2 parents 2bbb6bb + c4691cb commit 734a998

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Concerns/AutoloadsRelationships.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ trait AutoloadsRelationships
2424
*/
2525
protected $parentCollection = null;
2626

27+
/**
28+
* Check to see if we should autoload
29+
* @return bool
30+
*/
2731
private function shouldAutoLoad(): bool
2832
{
2933
return ($this->parentCollection
@@ -76,7 +80,7 @@ public function newCollection(array $models = []): Collection
7680
}
7781

7882
/**
79-
* Disable autoloading of relationships via this model
83+
* Disable autoloading of relationships on this model
8084
* @return Model
8185
*/
8286
public function disableAutoload(): Model

0 commit comments

Comments
 (0)