Laravel form won't PATCH, only POST - nested RESTfull Controllers, MethodNotAllowedHttpException

前端 未结 4 1321
隐瞒了意图╮
隐瞒了意图╮ 2021-01-05 11:47

I am trying to allow users to edit their playlist. However, whenever I try to execute the PATCH request, I get the MethodNotAllowed

4条回答
  •  无人及你
    2021-01-05 12:30

    Write {!! method_field('patch') !!} after form:

    {!! method_field('patch') !!} . . .

    Official documentation for helper function method_field()

提交回复
热议问题