//could be moved to the model or another namespace
const FIELDS = ['username', 'wallet_address', 'about', 'password', 'website', 'location'];
public function update(Request $request){
$user = Auth::user();
foreach (self::FIELDS as $field) {
if ($request->$field) {
$user->$field = $request->$field;
$user->save();
}
}
//handle avatar image update
}