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()
为PUT
方法创建update
路线。
您可以使用以下命令查看所有已注册的路由及其HTTP谓词和路由名称:
php artisan route:list