@@ -16,9 +16,10 @@ trait HybridRelations
16
16
{
17
17
/**
18
18
* Define a one-to-one relationship.
19
- * @param string $related
20
- * @param string $foreignKey
21
- * @param string $localKey
19
+ *
20
+ * @param string $related
21
+ * @param string $foreignKey
22
+ * @param string $localKey
22
23
* @return \Illuminate\Database\Eloquent\Relations\HasOne
23
24
*/
24
25
public function hasOne ($ related , $ foreignKey = null , $ localKey = null )
@@ -39,11 +40,12 @@ public function hasOne($related, $foreignKey = null, $localKey = null)
39
40
40
41
/**
41
42
* Define a polymorphic one-to-one relationship.
42
- * @param string $related
43
- * @param string $name
44
- * @param string $type
45
- * @param string $id
46
- * @param string $localKey
43
+ *
44
+ * @param string $related
45
+ * @param string $name
46
+ * @param string $type
47
+ * @param string $id
48
+ * @param string $localKey
47
49
* @return \Illuminate\Database\Eloquent\Relations\MorphOne
48
50
*/
49
51
public function morphOne ($ related , $ name , $ type = null , $ id = null , $ localKey = null )
@@ -64,9 +66,10 @@ public function morphOne($related, $name, $type = null, $id = null, $localKey =
64
66
65
67
/**
66
68
* Define a one-to-many relationship.
67
- * @param string $related
68
- * @param string $foreignKey
69
- * @param string $localKey
69
+ *
70
+ * @param string $related
71
+ * @param string $foreignKey
72
+ * @param string $localKey
70
73
* @return \Illuminate\Database\Eloquent\Relations\HasMany
71
74
*/
72
75
public function hasMany ($ related , $ foreignKey = null , $ localKey = null )
@@ -87,11 +90,12 @@ public function hasMany($related, $foreignKey = null, $localKey = null)
87
90
88
91
/**
89
92
* Define a polymorphic one-to-many relationship.
90
- * @param string $related
91
- * @param string $name
92
- * @param string $type
93
- * @param string $id
94
- * @param string $localKey
93
+ *
94
+ * @param string $related
95
+ * @param string $name
96
+ * @param string $type
97
+ * @param string $id
98
+ * @param string $localKey
95
99
* @return \Illuminate\Database\Eloquent\Relations\MorphMany
96
100
*/
97
101
public function morphMany ($ related , $ name , $ type = null , $ id = null , $ localKey = null )
@@ -117,10 +121,11 @@ public function morphMany($related, $name, $type = null, $id = null, $localKey =
117
121
118
122
/**
119
123
* Define an inverse one-to-one or many relationship.
120
- * @param string $related
121
- * @param string $foreignKey
122
- * @param string $otherKey
123
- * @param string $relation
124
+ *
125
+ * @param string $related
126
+ * @param string $foreignKey
127
+ * @param string $otherKey
128
+ * @param string $relation
124
129
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
125
130
*/
126
131
public function belongsTo ($ related , $ foreignKey = null , $ otherKey = null , $ relation = null )
@@ -160,10 +165,11 @@ public function belongsTo($related, $foreignKey = null, $otherKey = null, $relat
160
165
161
166
/**
162
167
* Define a polymorphic, inverse one-to-one or many relationship.
163
- * @param string $name
164
- * @param string $type
165
- * @param string $id
166
- * @param string $ownerKey
168
+ *
169
+ * @param string $name
170
+ * @param string $type
171
+ * @param string $id
172
+ * @param string $ownerKey
167
173
* @return \Illuminate\Database\Eloquent\Relations\MorphTo
168
174
*/
169
175
public function morphTo ($ name = null , $ type = null , $ id = null , $ ownerKey = null )
@@ -204,13 +210,14 @@ public function morphTo($name = null, $type = null, $id = null, $ownerKey = null
204
210
205
211
/**
206
212
* Define a many-to-many relationship.
207
- * @param string $related
208
- * @param string $collection
209
- * @param string $foreignKey
210
- * @param string $otherKey
211
- * @param string $parentKey
212
- * @param string $relatedKey
213
- * @param string $relation
213
+ *
214
+ * @param string $related
215
+ * @param string $collection
216
+ * @param string $foreignKey
217
+ * @param string $otherKey
218
+ * @param string $parentKey
219
+ * @param string $relatedKey
220
+ * @param string $relation
214
221
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
215
222
*/
216
223
public function belongsToMany (
@@ -277,6 +284,7 @@ public function belongsToMany(
277
284
278
285
/**
279
286
* Get the relationship name of the belongs to many.
287
+ *
280
288
* @return string
281
289
*/
282
290
protected function guessBelongsToManyRelation ()
0 commit comments