Skip to content

Commit

Permalink
Merge pull request #7 from georgehanson/patch-1
Browse files Browse the repository at this point in the history
Add docblock to shouldAutoLoad method
  • Loading branch information
liam-wiltshire authored Mar 7, 2019
2 parents 2bbb6bb + c4691cb commit 734a998
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Concerns/AutoloadsRelationships.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ trait AutoloadsRelationships
*/
protected $parentCollection = null;

/**
* Check to see if we should autoload
* @return bool
*/
private function shouldAutoLoad(): bool
{
return ($this->parentCollection
Expand Down Expand Up @@ -76,7 +80,7 @@ public function newCollection(array $models = []): Collection
}

/**
* Disable autoloading of relationships via this model
* Disable autoloading of relationships on this model
* @return Model
*/
public function disableAutoload(): Model
Expand Down

0 comments on commit 734a998

Please sign in to comment.