Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

laravel variable in javascript

<script>    
    var data = {!! json_encode($data, JSON_HEX_TAG) !!};
</script>
 
PREVIOUS NEXT
Tagged: #laravel #variable #javascript
ADD COMMENT
Topic
Name
1+2 =