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 88d53cc commit 92f1089Copy full SHA for 92f1089
src/Jenssegers/Mongodb/Eloquent/Model.php
@@ -39,7 +39,7 @@ abstract class Model extends BaseModel
39
* @param mixed $value
40
* @return mixed
41
*/
42
- public function getIdAttribute($value)
+ public function getIdAttribute($value = null)
43
{
44
// If we don't have a value for 'id', we will use the Mongo '_id' value.
45
// This allows us to work with models in a more sql-like way.
0 commit comments