Help: how to Update User Table

im getting this error : " Typed property App\Filament\Pages\Profile::$user must not be accessed before initialization" here in my code saw on picture:
7 Replies
petrisorcraciun
public ?User $user = null; but you have to make some changes to save or update
SIlentTech
SIlentTechOP2y ago
how can i achieve that on my code?
petrisorcraciun
change boot with mount, $user = ... replace with $this->user = Auth::user(); or can use auth()->user() for dates
petrisorcraciun
GitHub
filament-profile/src/Pages/Profile.php at main · ryangjchandler/fil...
A simple profile management page for Filament. ✨. Contribute to ryangjchandler/filament-profile development by creating an account on GitHub.
petrisorcraciun
I hope it helps. 🙂
SIlentTech
SIlentTechOP2y ago
wow great thanks for that

Did you find this page helpful?