Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Rendering JSON in laravel

<script>
    var app = <?php echo json_encode($array); ?>;
</script>
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #Rendering #JSON #laravel
ADD COMMENT
Topic
Name
3+3 =