laravel variable in javascript
snippet in javascript

laravel variable in javascript

user8793

<script>    
    var data = {!! json_encode($data, JSON_HEX_TAG) !!};
</script>