diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 31d011b..b9c59aa 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -137,7 +137,7 @@ class ProfileController extends Controller 'password.regex' => 'Format Kata Sandi harus mengandung minimal Huruf Besar, Huruf Kecil, Angka, Spesial Karakter', ])->validate(); - $profile = Profile::where('npsn',auth()->user()->profile->npsn)->first(); + $profile = Profile::where('npsn',auth()->user()->username)->first(); $profile->alamat_sekolah = $request->alamat_sekolah; $profile->kontak_person = $request->kontak_person; $profile->telp = $request->telp;