public function formatArray($content)
    {
        $content = $this->morphToArray($content);

        \array_walk_recursive($content, function (&$value) {
            $value = $this->morphToArray($value);
        });

        return $this->encode($content);
    }
public function formatArray($content)
    {
        $content = $this->morphToArray($content);

        \array_walk_recursive($content, function (&$value) {
            $value = $this->morphToArray($value);
        });

        return $this->encode($content);
    }
public function formatArray ( $ content ) { $ content = $ this -> morphToArray ( $ content ) ; \ array_walk_recursive ( $ content , function ( & $ value ) { $ value = $ this -> morphToArray ( $ value ) ; } ) ; return $ this -> encode ( $ content ) ; }
Format an array or instance implementing Arrayable.

@param array|\Illuminate\Contracts\Support\Arrayable $content

@return string
Format an array or instance implementing Arrayable .