how to read array from js file laravel code example Example: laravel array to js var app = @json($array);