How to get value of input in blade.php
问题 I need to get a value of input to use below, how to do that? I tried to like this but error says Undefined variable: name <div class="col-md-10 col-md-offset-1"> <input id="name" type="text" name="name" /> </div> <div class="col-md-10 col-md-offset-1"> @php $nameValue=$_GET['name']; @endphp <input id="name2" type="text" name="name2" value="{{$nameValue}}" /> </div> 回答1: You have to be aware that your input-values (here "name") ist only available after submitting the form. If you want to