so I am trying to show the first, middle and last name used in registration here. how should I do it? I am new to laravel so it is my first time encountering this scenario
<div >
<div >
<div >
<div >
<h4 ><strong> Step 1 (Application Form: Personal Information)</strong></h4>
<div >
<div >
<div >
<label for="firstName" >First Name</label>
<div >
<input type="text" id='firstName' readonly>
</div>
</div>
</div>
<div >
<div >
<label for="middleName" >Middle Name</label>
<div >
<input type="text" required="" placeholder="Middle Name" id='middleName' readonly>
</div>
</div>
</div>
<div >
<div >
<label for="lastName" >Last Name</label>
<div >
<input type="text" required="" placeholder="Last Name" id='lastName' readonly>
</div>
</div>
</div>
</div>
<a href="step2" style="float:right;">Next</a>
</div>
</div>
</div>
</div>
CodePudding user response:
Pass your variables into your views, and echo like this :
<input type="text" value="{{ $firstName }}" id='firstName' readonly>
You must read more about blade templates.