From 58c039adb447682d02357fefca07875eb0c2c1ea Mon Sep 17 00:00:00 2001 From: George Hanson Date: Wed, 6 Mar 2019 14:40:23 +0000 Subject: [PATCH 1/2] Add docblock to shouldAutoLoad method --- src/Concerns/AutoloadsRelationships.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Concerns/AutoloadsRelationships.php b/src/Concerns/AutoloadsRelationships.php index 3ca670a..fbad9ae 100644 --- a/src/Concerns/AutoloadsRelationships.php +++ b/src/Concerns/AutoloadsRelationships.php @@ -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 From c4691cbe88007c5595b534cbcbfa70a5d9b5d1dd Mon Sep 17 00:00:00 2001 From: Liam Wiltshire Date: Thu, 7 Mar 2019 19:59:42 +0000 Subject: [PATCH 2/2] Update AutoloadsRelationships.php --- src/Concerns/AutoloadsRelationships.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Concerns/AutoloadsRelationships.php b/src/Concerns/AutoloadsRelationships.php index fbad9ae..cc22b58 100644 --- a/src/Concerns/AutoloadsRelationships.php +++ b/src/Concerns/AutoloadsRelationships.php @@ -80,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