Laravel 5 在laravel 5.6中提交时未找到获取页面

Laravel 5 在laravel 5.6中提交时未找到获取页面,laravel-5,Laravel 5,我有一个laravel项目,在提交表单时,没有找到“m getting error”页面,而我已经创建了路线和所有 路线: Route::get('/', 'IndexController@index'); Route::post('/remove/{product}', 'ProductController@removeProduct')->name('remove'); Route::group(['as' => 'cart.', 'prefix' => 'cart']

我有一个laravel项目,在提交表单时,没有找到“m getting error”页面,而我已经创建了路线和所有

路线:

Route::get('/', 'IndexController@index');

Route::post('/remove/{product}', 'ProductController@removeProduct')->name('remove');

Route::group(['as' => 'cart.', 'prefix' => 'cart'], function () {

    Route::post('/update/{product}', 'ProductController@updateProduct')->name('update');
});
Route::get('cart', 'ProductController@cart')->name('all');
Route::get('/{type}', 'IndexController@loadview');
查看文件:

<form action="{{route('remove', $slug)}}" method="POST" accept-charset="utf-8">
                            @csrf

                            <input type="submit" name="remove" value="x Remove" class="btn btn-danger"/>
                            </form>

removeProduct(Product$Product)
就像在你的路线上一样,只是让它变了

Route::post('/remove/{product}', 'ProductController@removeProduct')->name('remove');
但是如果你想使用这种
移除产品(Product$Product)
之类的东西


使用资源路由获取更多详细信息重新加载相同的单击

尝试此返回重定向()->back()->with('message',“Product$Product->title已成功从购物车中删除”);removeProduct()函数甚至没有被调用,所以我应该如何将它重定向到某个我自己得到的地方,我在控制器中传递的参数是错误的,将其作为答案发布,以便任何遇到相同问题的人都得到了,或者我应该将其发布为asnwer吗?您发布它。。。
Route::post('/remove/{product}', 'ProductController@removeProduct')->name('remove');