have you tried just $user->update(['username' => $newValue])? You should get the authenticated user from Auth::user().
It seems that I was mistaken. It is possible to do the above my error was a few lines down.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us
The Laravel portal for problem solving, knowledge sharing and community building.