Commit 11107adf authored by Jesse O'Brien's avatar Jesse O'Brien

Changing name from to .

parent 983d4634
......@@ -34,7 +34,7 @@ abstract class Model extends \Jenssegers\Eloquent\Model {
*
* @var array
*/
protected $exposeJsonAttributes = [];
protected $expose = [];
/**
* The connection resolver instance.
......@@ -292,7 +292,7 @@ abstract class Model extends \Jenssegers\Eloquent\Model {
// internal array of embedded documents. In that case, we need
// to hide these from the output so that the relation-based
// attribute can take over.
else if (starts_with($key, '_') and ! in_array($key, $this->exposeJsonAttributes))
else if (starts_with($key, '_') and ! in_array($key, $this->expose))
{
$camelKey = camel_case($key);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment