Skip to content

Commit

Permalink
delete gapenting
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunnie-pin committed Jul 6, 2023
1 parent c5f76e3 commit 6500796
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
3 changes: 3 additions & 0 deletions app/Http/Controllers/ListUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ public function update(Request $request, $user)
'roles_id' => 'required'
]);



User::where('username', $user )->update([
'email' => $request->email,
'password' => Hash::make($request->password),
Expand All @@ -102,6 +104,7 @@ public function update(Request $request, $user)
'roles_id' => $request->roles_id
]);


return redirect('/list-user')->with('success','User telah berhasil diperbaharui');

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ class="form-control
"
id="nama_lengkap" name="nama_lengkap">


@error('nama_lengkap')
<label class="form-check-label invalid-feedback">
{{ $message }}
Expand All @@ -110,7 +109,6 @@ class="form-control
"
id="no_telp" name="no_telp">


@error('no_telp')
<label class="form-check-label invalid-feedback">
{{ $message }}
Expand Down
12 changes: 1 addition & 11 deletions resources/views/rolesviews/superadmin/edit/edituser.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,7 @@
<div class="row">
<div class="card">
<div class="card-body p-3">
<!-- card -->

{{-- 'username' => 'admin',
'email' => 'admin@mail.com',
'password' => Hash::make('password'),
'nama_lengkap' => 'Super Admin',
'no_telp' => '08123xxxxxx',
'roles_id' => 1, --}}



<form class="row g-3" method="post" action="{{ route('list-user.update', ['list_user' => $data->username]) }}">
Expand All @@ -40,9 +33,6 @@ class="form-control"
>
</div>

{{-- end username --}}
{{-- email --}}


<div class="py-2">
<label for="email" class="form-label">Email</label>
Expand Down

0 comments on commit 6500796

Please sign in to comment.