how to get php array in jquery in laravel blade code example Example: laravel array to js var app = @json($array);