Skip to content

Commit e460543

Browse files
author
Andrey Helldar
authored
Fixed a bug with processing massive keys outside of composite
1 parent ee2e5c0 commit e460543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Eloquent/CompositeKeysModel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function find($id, $columns = ['*'])
3737
}
3838
}
3939

40-
return $id instanceof Arrayable
40+
return is_array($id) || $id instanceof Arrayable
4141
? $this->findMany($id, $columns)
4242
: $this->whereKey($id)->first($columns);
4343
}

0 commit comments

Comments
 (0)