Skip to content

Commit 25a4a87

Browse files
authored
laravel/lumen 5.7.14 compatibility
Updated model to be compatible with laravel/lumen 5.7.14
1 parent 97fadd9 commit 25a4a87

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Jenssegers/Mongodb/Eloquent/Model.php

+7
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ abstract class Model extends BaseModel
3131
* @var string
3232
*/
3333
protected $primaryKey = '_id';
34+
35+
/**
36+
* The primary key type.
37+
*
38+
* @var string
39+
*/
40+
protected $keyType = 'string';
3441

3542
/**
3643
* The parent relation instance.

0 commit comments

Comments
 (0)