update
parent
00dd924f49
commit
1046d0450f
|
|
@ -93,6 +93,26 @@ class ProfileController extends Controller
|
||||||
'user_id' => auth()->user()->id,
|
'user_id' => auth()->user()->id,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
$user = User::find(auth()->user()->id);
|
||||||
|
|
||||||
|
$session = [
|
||||||
|
'username' => $user->username,
|
||||||
|
'name' => $user->name,
|
||||||
|
'email' => $user->email,
|
||||||
|
'sekolah_id' => @$user->profile->sekolah->MsSekolahId,
|
||||||
|
'npsn' => @$user->profile->npsn,
|
||||||
|
'tingkat_sekolah' => @$user->profile->tingkat->name,
|
||||||
|
'status_sekolah' => @$user->profile->status_sekolah,
|
||||||
|
'alamat_sekolah' => @$user->profile->alamat_sekolah,
|
||||||
|
'kontak_person' => @$user->profile->kontak_person,
|
||||||
|
'telp' => @$user->profile->telp,
|
||||||
|
'currYear' => date('Y'),
|
||||||
|
'group_id' => @$user->ms_group_id,
|
||||||
|
'group_alias' => @$user->group->alias,
|
||||||
|
'group_name' => @$user->group->name,
|
||||||
|
];
|
||||||
|
session($session);
|
||||||
|
|
||||||
DB::commit();
|
DB::commit();
|
||||||
return redirect('dashboard');
|
return redirect('dashboard');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue