SHARE
TWEET

Untitled

a guest Sep 10th, 2019 156 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $user = User::find($id);
  2.         $user->level = 'siswa';
  3.         $user->name = $request->nama_siswa;
  4.         $user->email = $request->email;
  5.         $user->password = bcrypt('rahasia');
  6.         $user->save();
  7.         $request->request->add(['user_id' => $user->id]);
  8.         $siswa = Siswa::create($request->all());
  9.         return redirect('/siswa');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top