Skip to content
Snippets Groups Projects
Commit 7350f057 authored by Afrizal Fikri's avatar Afrizal Fikri
Browse files

lul

parent 018dee9d
Branches
No related merge requests found
Pipeline #3018 skipped
......@@ -49,7 +49,7 @@ class AuthController extends Controller
protected function validator(array $data)
{
return Validator::make($data, [
'name' => 'required|max:255',
'id' => 'required|max:255',
'email' => 'required|email|max:255|unique:users',
'password' => 'required|min:6|confirmed'
]);
......@@ -65,7 +65,7 @@ class AuthController extends Controller
{
return User::create([
'id' => $data['id'],
'name' => \App\Pegawai::find($id)->nama,
'name' => \App\Pegawai::find($data['id'])->nama,
'email' => $data['email'],
'password' => bcrypt($data['password'])
]);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment