UUID

Unique User IDs (UUIDs) are strings used to identify users in Saturn's database. It's recommended to use UUIDs instead of row IDs as some tables don't use the row ID as the user ID, and it's good practice for security.

Generate a UUID

Saturn has built-in functions for generating UUIDs.

use Saturn\AccountManager\UUID;

$UUID = new UUID();

// The newly generated UUID is now in the $UniqID variable.
$UniqID = $UUID->Generate();

Last updated