Laravel 5.6路由更新表

时间:2018-02-22 14:45:15

标签: laravel laravel-5.6

This is the mean problem
I have controllers structures like this 

File Structures

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

web/routes

Updating form is
  

{{Form :: open(array(' method' =>' POST',' route' => ['类别。更新',$ category-> id]))}}

i got this error 

Error

Any Solution ?? 

1 个答案:

答案 0 :(得分:2)

使用put方法:

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

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

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

php artisan route:list
相关问题