public function run($data)
    {
        if (($data instanceof Eloquent) || ($data instanceof Arrayable)) {
            return $data->toArray();
        } elseif ($data instanceof Renderable) {
            return \e($data->render());
        } elseif (\is_array($data)) {
            return \array_map([$this, 'run'], $data);
        }

        return $data;
    }
public function run($data)
    {
        if (($data instanceof Eloquent) || ($data instanceof Arrayable)) {
            return $data->toArray();
        } elseif ($data instanceof Renderable) {
            return \e($data->render());
        } elseif (\is_array($data)) {
            return \array_map([$this, 'run'], $data);
        }

        return $data;
    }
public function run ( $ data ) { if ( ( $ data instanceof Eloquent ) || ( $ data instanceof Arrayable ) ) { return $ data -> toArray ( ) ; } elseif ( $ data instanceof Renderable ) { return \ e ( $ data -> render ( ) ) ; } elseif ( \ is_array ( $ data ) ) { return \ array_map ( [ $ this , 'run' ] , $ data ) ; } return $ data ; }
Run data transformation.

@param  mixed  $data

@return array|mixed
Run data transformation .