protected function dumpToString(array $dump): string
    {
        return collect($dump)
            ->map(function ($item, $key) {
                return str_pad($key.':', 15, ' ')
                       .(is_scalar($item) ? $item : json_encode($item));
            })
            ->prepend("\n")
            ->implode("\n");
    }
protected function dumpToString(array $dump): string
    {
        return collect($dump)
            ->map(function ($item, $key) {
                return str_pad($key.':', 15, ' ')
                       .(is_scalar($item) ? $item : json_encode($item));
            })
            ->prepend("\n")
            ->implode("\n");
    }
protected function dumpToString ( array $ dump ) : string { return collect ( $ dump ) -> map ( function ( $ item , $ key ) { return str_pad ( $ key . ':' , 15 , ' ' ) . ( is_scalar ( $ item ) ? $ item : json_encode ( $ item ) ) ; } ) -> prepend ( "\n" ) -> implode ( "\n" ) ; }
Convert dump array to string.

@param array $dump

@return string
Convert dump array to string .