Skip to content
Advertisement

Value Old() On Laravel Blade, Seems Not To Be Working

I want to retrieve the old value input that user has entered on form, so he/she won’t need to re-enter all the form inputs again.

In order to do that, I have added these:

JavaScript

So I tried retrieving old requests by saying:

JavaScript

But it does not seem to be working, and when the form refreshes, no data added from the last request.

So how to fix this? I would really appreciate any idea or suggestion from you guys…

Thanks.

Advertisement

Answer

Try passing second param to old method

JavaScript

Full code

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement