Laravel 5.6 路线更新表格
Laravel 5.6 route updating form
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 ??
使用put
方法:
{{ Form::open(array('method'=>'PUT','route' => ['categories.update', $category->id])) }}
因为 Route::resource()
为 update
方法创建了 PUT
路由。
您可以使用此命令查看所有已注册的路由及其 HTTP 动词和路由名称:
php artisan route:list
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 ??
使用put
方法:
{{ Form::open(array('method'=>'PUT','route' => ['categories.update', $category->id])) }}
因为 Route::resource()
为 update
方法创建了 PUT
路由。
您可以使用此命令查看所有已注册的路由及其 HTTP 动词和路由名称:
php artisan route:list