2
This is the mean problem
I have controllers structures like this 

文件结构

And i am using this syntax to make routes which is worked good for me

网络/路线

Updating form is

{{ Form::open(array('method'=>'POST','route' => ['categories.update', $category->id])) }}

i got this error 

错误

Any Solution ?? 
4

1 回答 1

2

使用put方法:

{{ Form::open(array('method'=>'PUT','route' => ['categories.update', $category->id])) }}

因为为方法Route::resource()创建PUT路线。update

您可以使用以下命令查看所有已注册的路由及其 HTTP 动词和路由名称:

php artisan route:list
于 2018-02-22T14:47:06.737 回答