Php 缺少[Route:time.update][URI:time/{time}]所需的参数

Php 缺少[Route:time.update][URI:time/{time}]所需的参数,php,laravel,laravel-blade,Php,Laravel,Laravel Blade,我用的是拉威尔6。我有类似的控制器,在同一个应用程序中具有类似的视图,运行良好。即使比较了两者,仍然无法找到错误 Facade\Ignition\Exceptions\ViewException Missing required parameters for [Route: time.update] [URI: time/{time}]. (View: C:\xampp\htdocs\cms\resources\views\timeslot\edit.blade.php) http://cms

我用的是拉威尔6。我有类似的控制器,在同一个应用程序中具有类似的视图,运行良好。即使比较了两者,仍然无法找到错误

Facade\Ignition\Exceptions\ViewException

Missing required parameters for [Route: time.update] [URI: time/{time}].
(View: C:\xampp\htdocs\cms\resources\views\timeslot\edit.blade.php)
http://cms.test/time/4/edit

Error: return new static("Missing required parameters for [Route {$route->getName()}] [URI: {$route->uri()}].");

要编辑的链接:

<a href="{{route('time.edit',$timeslot->id)}}">{{$timeslot->timeslot_title}}</a>
编辑表格:

@extends('layouts.admin')
@section('content')
<h1>Edit Timeslot  Details </h1>
<form action="{{route('time.update',$timeslot->id)}}" method="POST">
    @method('PATCH')
    @include('timeslot.form')
    <button type="submit" class="btn btn-primary">Update Timeslot</button>

</form>
@endsection
@extends('layouts.admin'))
@节(“内容”)
编辑时隙详细信息
@方法('补丁')
@包括('timeslot.form')
更新时隙
@端部
route()
第二个参数是关联数组。如果传递模型,它可以自动获取时隙id。假设路线中的型号名称为“时隙”

<a href="{{route('time.edit', ['timeslot' => $timeslot]}}">{{$timeslot->timeslot_title}}</a>

尝试将返回添加到更新功能中