我是编码新手,我一直在观看有关 Laravel 中一个简单的服务器端处理 crud 和数据表的 youtube 教程,我收到了这个错误,我不知道为什么我会得到它。
我正在尝试为我的代码创建一个更新函数,但不能因为这个错误。我有一种感觉,这是因为我的更新网址,但我在教程中使用了相同的语法,所以你能帮助我吗?
缺少 [Route: Clients.update] [URI: Clients/{Client}] 的必需参数。(查看:C:\xampp\htdocs\project\resources\views\clients\clients.blade.php)
这是我的视图代码
<div id="formmodal" class="modal fade" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Client Form</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>{{-- header --}}
<div class="modal-body">
<span class="result" id="result"></span>
<form method="post" id="client_form" enctype="multipart/form-data">
@csrf
<div class="form-group">
<label for="client_name">Name</label>
<input type="text" class="form-control" name="client_name" id="client_name" placeholder="Enter Name">
</div>
<div class="form-group">
<label for="client_address">Addres</label>
<input type="text" class="form-control" name="client_address" id="client_address" placeholder="Enter Addres">
</div>
<div class="form-group">
<label for="client_date">Birth Date</label>
<input type="date" class="form-control" name="client_bdate" id="client_bdate">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
千万里不及你
FFIVE
Cats萌萌