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 1d7fafc commit 88a1600Copy full SHA for 88a1600
src/Illuminate/Database/Eloquent/Model.php
@@ -1408,10 +1408,12 @@ public function getQueueableRelations()
1408
$relations = [];
1409
1410
foreach ($this->getRelations() as $key => $relation) {
1411
- if (method_exists($this, $key)) {
1412
- $relations[] = $key;
+ if (! method_exists($this, $key)) {
+ continue;
1413
}
1414
1415
+ $relations[] = $key;
1416
+
1417
if ($relation instanceof QueueableCollection) {
1418
foreach ($relation->getQueueableRelations() as $collectionValue) {
1419
$relations[] = $key.'.'.$collectionValue;
0 commit comments