Skip to content

Commit 7bcec17

Browse files
committed
2 parents f145abd + 42051ad commit 7bcec17

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class Company extends Model
208208
return $this->belongsToArrayColumn(
209209
User::class,
210210
'id',
211-
'founders'
211+
'companies'
212212
);
213213
}
214214
}
@@ -227,7 +227,7 @@ $company->companyFounders;
227227

228228
```
229229

230-
This will provide you with data from the `users` table where the `founders` array column contains the value 71.
230+
This will provide you with data from the `users` table where the `companies` array column contains the value 71.
231231

232232
## Testing
233233

src/HasExtendedRelationships.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public function hasManyKeys(string $related, ?array $relations = null, ?string $
3535

3636
/**
3737
* @param string $related
38-
* @param string|null $localKey
3938
* @param string|null $foreignKey
39+
* @param string|null $localKey
4040
* @return HasManyArrayColumn
4141
*/
4242
public function hasManyArrayColumn(string $related, ?string $foreignKey, ?string $localKey):HasManyArrayColumn
@@ -47,8 +47,8 @@ public function hasManyArrayColumn(string $related, ?string $foreignKey, ?string
4747

4848
/**
4949
* @param string $related
50-
* @param string|null $localKey
5150
* @param string|null $foreignKey
51+
* @param string|null $localKey
5252
* @return BelongsToArrayColumn
5353
*/
5454
public function belongsToArrayColumn(string $related, ?string $foreignKey, ?string $localKey): BelongsToArrayColumn

0 commit comments

Comments
 (0)