Laravel 5.7 缺少[Route:{$Route->;getName()}][URI:{$Route->;URI()}]所需的参数;

Laravel 5.7 缺少[Route:{$Route->;getName()}][URI:{$Route->;URI()}]所需的参数;,laravel-5.7,Laravel 5.7,在新的拉威尔和我试图建立一个编辑刀片使用资源控制器。(使用laravel 5.7)但它抛出了这样一个错误 Missing required parameters for [Route: home.hotels.update] [URI: home/hotels/{hotel}]. (View: C:\xamp\....\.....\edit.blade.php) <form method="post" action="{{route('home.hotels.update',$hotel

在新的拉威尔和我试图建立一个编辑刀片使用资源控制器。(使用laravel 5.7)但它抛出了这样一个错误

Missing required parameters for [Route: home.hotels.update] [URI: home/hotels/{hotel}]. (View: C:\xamp\....\.....\edit.blade.php)
<form method="post" action="{{route('home.hotels.update',$hotels->id)}}"> 
    @csrf
    {{ method_field('PUT') }}
    <div class="form-group">
        <div class="row">
            <label class="col-md-6">Hotel ID</label>
            <div class="col-md-6"><input type="text" name="hotelid" class="form-control" value="{{$hotels->hotelid}}"> </div>
        </div>
   .........  rest of the  input fields follows........
请注意: 当我将鼠标悬停在编辑按钮上时,它正确地指向id的 当我试图在控制器中的“编辑函数”中回显字段名时,它返回正确的页面,但“空白”。有人能告诉我这个错误是从哪里来的吗?如果可能的话,如何解决

我的索引刀片中的代码(与编辑相关的部分)

“我的更新”函数的代码也与“存储”相同------

我的路线呢

Route::get('/home', 'HomeController@index')->name('home');
Route::resource('home/users', 'Admin\UsersController',['as'=>'home']);
Route::resource('home/hotels', 'Admin\HotelsController',['as'=>'home']);
public function index()
{
    $arr['hotels']=hotels::all();
    return view('admin.hotels.index')->with($arr);
}
public function store(Request $request, hotels $hotels)
{
    $hotels->hotelid=$request->hotelid;
    $hotels->hotelname=$request->hotelname;
    ...........other fields.................. 
    $hotels->save();
    return redirect('home/hotels');
}

public function edit(hotels $hotels )
{

    $arr['hotels'] = $hotels;
    return view('admin.hotels.edit')->with($arr);

}
Route::get('/home', 'HomeController@index')->name('home');
Route::resource('home/users', 'Admin\UsersController',['as'=>'home']);
Route::resource('home/hotels', 'Admin\HotelsController',['as'=>'home']);