Files
pterodactyl-panel/app/Contracts/Users/CreatesUsers.php
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

25 lines
581 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Users;
use Pterodactyl\Models\User;
use Throwable;
interface CreatesUsers
{
/**
* Create a new user on the system. When no password is provided a random one is
* set and a password reset token is generated for the account welcome email.
*
* The UUID and password hash are handled by the model itself (HasVersion4Uuids
* and the hashed password cast).
*
* @param ModelAttributes $data
*
* @throws Throwable
*/
public function create(array $data): User;
}