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 983d463 commit 11107adCopy full SHA for 11107ad
src/Jenssegers/Mongodb/Model.php
@@ -34,7 +34,7 @@ abstract class Model extends \Jenssegers\Eloquent\Model {
34
*
35
* @var array
36
*/
37
- protected $exposeJsonAttributes = [];
+ protected $expose = [];
38
39
/**
40
* The connection resolver instance.
@@ -292,7 +292,7 @@ public function attributesToArray()
292
// internal array of embedded documents. In that case, we need
293
// to hide these from the output so that the relation-based
294
// attribute can take over.
295
- else if (starts_with($key, '_') and ! in_array($key, $this->exposeJsonAttributes))
+ else if (starts_with($key, '_') and ! in_array($key, $this->expose))
296
{
297
$camelKey = camel_case($key);
298
0 commit comments