How to Show the Old Value of the Input Field When Editing in Laravel
in this lesson, we will see how to show the old value of the input field when editing in Laravel, this approach will make the user see his previously entered data when updating the form.
Display the old value of an input field when editing records in Laravel
To do that let's assume that we are updating a post with a field named title see the example below:
<input type="text" class="form-control" name="title" value="{{old('title',$post->title)}}" id="title" placeholder="Title*"/>