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
petrisorcraciun16mo ago
public ?User $user = null; but you have to make some changes to save or update
SIlentTech
SIlentTechOP16mo ago
how can i achieve that on my code?
petrisorcraciun
petrisorcraciun16mo ago
change boot with mount, $user = ... replace with $this->user = Auth::user(); or can use auth()->user() for dates
petrisorcraciun
petrisorcraciun16mo ago
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
petrisorcraciun16mo ago
I hope it helps. 🙂
SIlentTech
SIlentTechOP16mo ago
wow great thanks for that
Want results from more Discord servers?
Add your server