laravel retrieve old input code example
Example: laravel get all old input
$old = session()->getOldInput();
// or javascript
var oldInput = <?= json_encode(session()->getOldInput()); ?>;
console.log("oldInput", oldInput);
$old = session()->getOldInput();
// or javascript
var oldInput = <?= json_encode(session()->getOldInput()); ?>;
console.log("oldInput", oldInput);