0
I’m trying to perform an update, the successful json Sponse is returned, but when I consult the database is not changing the data.
I tried to:
Route::put('alteraDadosPerfil/{id}', 'Auth\LoginController@alteraDadosPerfil');
function alteraDadosPerfil(Request $request, $id){
User::findOrFail($id)->first()->fill($request->all())->save();
return response()->json('Dados de perfil alterados com sucesso', 200);
}
You have to perform some additional procedure to update the users table generated by the Standard?