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 ee2e5c0 commit e460543Copy full SHA for e460543
src/Eloquent/CompositeKeysModel.php
@@ -37,7 +37,7 @@ public function find($id, $columns = ['*'])
37
}
38
39
40
- return $id instanceof Arrayable
+ return is_array($id) || $id instanceof Arrayable
41
? $this->findMany($id, $columns)
42
: $this->whereKey($id)->first($columns);
43
0 commit comments