How to use patch request in Laravel?

后端 未结 3 1119
清歌不尽
清歌不尽 2021-02-04 07:44

There is entity User that is stoted in table Users

Some fields in this table are null by default.

I need to update these fields and se

3条回答
  •  广开言路
    2021-02-04 08:07

    Update the routing as per below

    Route::patch('/users/update/{id}',[
        'uses' => 'UsersController@update'
    ]);
    

提交回复
热议问题