我创建了一个表单,但是在单击“提交”按钮后它不起作用
<div class="col-sm-12 col-lg-6 mb-4"><div class="card border-primary">
<div class="card-header border-primary bg-primary">Create E-Pin</div>
<div class="card-body">
<from class="form-group" method="post" action="{{ route('frontend.epin.store') }}">
@csrf
<div class="form-group">
<label >E-pin Amount</label>
<input type="text" name='amount' class="form-control">
</div>
<button type="submit" class="btn btn-primary">Create</button>
</from>
</div>
</div>
</div>
答案 0 :(得分:2)
当然不能用,因为您打错了
<form class="form-group" method="post" action="{{ route('frontend.epin.store') }}">
@csrf
<div class="form-group">
<label >E-pin Amount</label>
<input type="text" name='amount' class="form-control">
</div>
<button type="submit" class="btn btn-primary">Create</button>
</form>
应为非格式。