laravel blade pass array to javascript code example Example: laravel javascript array from blade var app = @json($array);