Skip to content
Advertisement

Laravel 5 input old is empty

My routes is here

JavaScript

Controller

JavaScript

And View

JavaScript

The {{old()}} function return empty value.
EDIT
I took

JavaScript

Advertisement

Answer

Your problem looks like you are not actually submitting the username in the first place:

JavaScript

There is no ‘submit’ button inside the form. If you submit outside the form – then the username will not be included.

Add the submit button inside your form – then try again

JavaScript

Edit – also your controller is wrong. It should be this:

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