I am trying to store the name of the user who updates data in a table, I have only managed to store the name of the person who saves data for the first time, but not who update, another question is; I can save only the name, not the ID, so as not to relate to the users table. . I leave part of the code here.
public function update(Request $request, $id)
{
//
$this->validate($request,[
'id_estado'=>'required',
'observaciones'=>'required',
'autorizacion' => Auth::user(),
]);
Deposito::find($id)->update($request->all());
return redirect()->route('depositos.autorizacion')
->with('success', 'Deposito actualizado');
}