gpt4 book ai didi

Laravel 5.6 路由更新表单

转载 作者:行者123 更新时间:2023-12-05 04:07:09 26 4
gpt4 key购买 nike

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' => ['categories.update', $category->id])) }}

i got this error 

Error

Any Solution ?? 

最佳答案

使用put方法:

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

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

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

php artisan route:list

关于Laravel 5.6 路由更新表单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48930263/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com