uuid = $uuid->generate('users', 'uuid'); $user->username = $username; $user->email = $email; $user->password = Hash::make($password); $user->save(); return $user->id; } }