add default profil picture

This commit is contained in:
raditya09 2023-11-07 22:57:46 +07:00
parent f8514c9cb7
commit 770dda1471
3 changed files with 4 additions and 1 deletions

View File

@ -48,7 +48,8 @@ public function store(Request $request)
'nim' => $request->nim, 'nim' => $request->nim,
'email' => $request->email, 'email' => $request->email,
'password' => Hash::make($request->password), 'password' => Hash::make($request->password),
'kelas_user' => '2', 'foto' => 'images/2xUcdtkygOf0aM2EvXuKFLXLOBlEuXNPT21Oeo15.png',
'kelas_user' => '2'
]); ]);
return redirect()->route('adminListAdmin.index')->with('success', 'Admin baru berhasil dibuat'); return redirect()->route('adminListAdmin.index')->with('success', 'Admin baru berhasil dibuat');
} }

View File

@ -74,6 +74,7 @@ protected function create(array $data)
'angkatan' => $data['angkatan'], 'angkatan' => $data['angkatan'],
'email' => $data['email'], 'email' => $data['email'],
'password' => Hash::make($data['password']), 'password' => Hash::make($data['password']),
'foto' => 'images/2xUcdtkygOf0aM2EvXuKFLXLOBlEuXNPT21Oeo15.png',
'kelas_user' => '3', 'kelas_user' => '3',
]); ]);
} }

View File

@ -24,6 +24,7 @@ class User extends Authenticatable
'angkatan', 'angkatan',
'email', 'email',
'password', 'password',
'foto',
'kelas_user', 'kelas_user',
]; ];