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