saluei
1 month ago
2522
7
Laravel

get list of all old value in *.blade.php

Posted 1 month ago by saluei

{{old('element_name'}} command return the old value of element in page , so in form validation if validation failed I can show the user , value entered and form element value remain.

how i could get the list of all old value in form ? may be something like this (old function without parameter)

<script>

var list_of_all_old_value = {{  old()  }};

</script>

Please sign in or create an account to participate in this conversation.