Support the ongoing development of Laravel.io →
Authentication Eloquent
Last updated 2 years ago.
0

have you tried just $user->update(['username' => $newValue])? You should get the authenticated user from Auth::user().

0

It seems that I was mistaken. It is possible to do the above my error was a few lines down.

Sorry!

Mei

0

Cool beans

0

Sign in to participate in this thread!

Eventy

Your banner here too?

meigwilym meigwilym Joined 5 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.