getArrayableRelations() protected method

Get an attribute array of all arrayable relations.
protected getArrayableRelations ( ) : array
return array
Example #1
0
 /**
  * @return array
  */
 protected function getArrayableRelations()
 {
     $result = parent::getArrayableRelations();
     // To fix #17 when converting tree to json falling to infinite recursion.
     unset($result['parent']);
     return $result;
 }