We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56831cb commit ee5a979Copy full SHA for ee5a979
src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php
@@ -760,12 +760,12 @@ protected function newRelatedInstance($class)
760
}
761
762
/**
763
- * Create a new model instance for a through model.
+ * Create a new model instance for a related "through" model.
764
*
765
* @param string $class
766
* @return mixed
767
*/
768
- protected function newThroughInstance($class)
+ protected function newRelatedThroughInstance($class)
769
{
770
return new $class;
771
0 commit comments