Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

182
Vistas
Passing old value array laravel in Javascript

im struggling to pass laravel 8 array value in javascript variable with function old(). this is when store the data

"date" => array:4 [▼
        0 => "2022-03-28"
        1 => "2022-03-29"
        2 => "2022-03-30"
        3 => "2022-03-31"
      ]

however it some error with the validation. i need to get back the value throught javascript. but i can't get the value back. here is the code

$(document).ready(function(){   
    var total_row = 4; 

    for (let row = 0; row < total_row; row++) { 
        var getOld_value =  {{ json_encode(old( '"date."+row+' )) }};  

        console.log(getOld_value);
    }

});

all return is null.. how do i able to get the value on javascript.

please help

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda