Variabel Laravel dalam JavaScript

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