laravel convert php array to javascript array code example Example: laravel array to js var app = @json($array);