request a javascript array in laravel code example Example: laravel array to js var app = @json($array);