Skip to content

Commit

Permalink
debug create user
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunnie-pin committed Jul 6, 2023
1 parent 7b8b1d6 commit c5f76e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Http/Controllers/ListUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,17 @@ public function store(Request $request)
{
//
$request->validate([
'username' => 'required|max:30|unique:users',
'email' => 'required|unique:users',
'password' => 'required|min:8|max:30',
'nama_lengkap' => 'required',
'no_telp' => 'required',
'roles_id' => 'required'
]);

User::create([
'username' => $request->username,
'email' => $request->email,
'password' => Hash::make($request->password),
'nama_lengkap' => $request->nama_lengkap,
'no_telp' => $request->no_telp,
Expand Down

0 comments on commit c5f76e3

Please sign in to comment.