переменная Laravel в JavaScript

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