public function updatePassword($id, UserFormRequest $request)
 {
     $user = User::find($id);
     $user->update(['password' => bcrypt($request->input('password'))]);
     return redirect()->route('show.profile', $id);
 }
 public function store(UserFormRequest $request)
 {
     $user = new User();
     $user->name = $request->get('name');
     $user->username = $request->input('username');
     $user->email = $request->get('email');
     $user->role = $request->get('role');
     $user->password = bcrypt($request->get('password'));
     $user->save();
     $message = 'User berhasil ditambahkan';
     return redirect('user/show-all-users')->withMessage($message);
 }