Skip to content

Commit 11107ad

Browse files
author
Jesse O'Brien
committed
Changing name from to .
1 parent 983d463 commit 11107ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Jenssegers/Mongodb/Model.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ abstract class Model extends \Jenssegers\Eloquent\Model {
3434
*
3535
* @var array
3636
*/
37-
protected $exposeJsonAttributes = [];
37+
protected $expose = [];
3838

3939
/**
4040
* The connection resolver instance.
@@ -292,7 +292,7 @@ public function attributesToArray()
292292
// internal array of embedded documents. In that case, we need
293293
// to hide these from the output so that the relation-based
294294
// attribute can take over.
295-
else if (starts_with($key, '_') and ! in_array($key, $this->exposeJsonAttributes))
295+
else if (starts_with($key, '_') and ! in_array($key, $this->expose))
296296
{
297297
$camelKey = camel_case($key);
298298

0 commit comments

Comments
 (0)