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' => ['类别。更新',$ category-> id]))}}
i got this error
Any Solution ??
答案 0 :(得分:2)
使用put
方法:
{{ Form::open(array('method'=>'PUT','route' => ['categories.update', $category->id])) }}
因为Route::resource()
为PUT
方法创建update
路由。
您可以使用此命令查看所有已注册的路由及其HTTP谓词和路由名称:
php artisan route:list