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.
2 parents e86b43d + 1f1a419 commit c973ba8Copy full SHA for c973ba8
src/Models/ForeignRelationship.php
@@ -27,6 +27,7 @@ class ForeignRelationship implements JsonWriter
27
'hasManyThrough',
28
'morphTo',
29
'morphMany',
30
+ 'morphOne',
31
'morphToMany',
32
];
33
@@ -107,6 +108,7 @@ public function isSingleRelation()
107
108
return in_array($this->type, [
109
'hasOne',
110
'belongsTo',
111
112
113
]);
114
}
@@ -121,7 +123,7 @@ public function isSingleRelation()
121
123
public function setType($type)
122
124
{
125
if (!self::isValidType($type)) {
- throw new OutOfRangeException();
126
+ throw new \OutOfRangeException();
127
128
129
$this->type = $type;
0 commit comments