/**
  * Extract the data from an object.
  *
  * @param mixed $value
  *
  * @return array
  */
 protected function serializeObject($value)
 {
     $serialized = EloquentDriver::serialize($value);
     if ($value !== $serialized) {
         return $serialized;
     }
     return parent::serializeObject($value);
 }
 /**
  * Extract the data from an object.
  *
  * @param mixed $value
  *
  * @return array
  */
 protected function serializeObject($value)
 {
     $serialized = EloquentDriver::serialize($value);
     return $value !== $serialized ? $serialized : parent::serializeObject($value);
 }