How to resolve TypeError: Cannot convert undefined or null to object

后端 未结 9 1272
生来不讨喜
生来不讨喜 2020-11-28 05:44

I\'ve written a couple of functions that effectively replicate JSON.stringify(), converting a range of values into stringified versions. When I port my code over to JSBin an

9条回答
  •  忘掉有多难
    2020-11-28 06:32

    If you're using Laravel, my problem was in the name of my Route. Instead:

    Route::put('/reason/update', 'REASONController@update');
    

    I wrote:

    Route::put('/reason/update', 'RESONController@update');
    

    and when I fixed the controller name, the code worked!

提交回复
热议问题