laracasts / PHP-Vars-To-Js-Transformer

Transform PHP data to JavaScript.
https://packagist.org/packages/laracasts/utilities
MIT License
2.21k stars 219 forks source link

View::make('footer')->render(); #73

Closed llioor closed 7 years ago

llioor commented 8 years ago

When I use: $html = View::make('footer')->render(); The view content is passed to the parameter ($html)

When I write this before: JavaScript::put([ 'foo' => 'Baa', ]);

this: $html = View::make('footer')->render();

is not working properly anymore, the render() function output the data directly to the browser and not as a string to the parameter.