📜  laravel 生成唯一的数据库令牌 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:12.875000             🧑  作者: Mango

代码示例2
do {
    $token_id = makeRandomToken();
    $token_key = makeRandomTokenKey();
} while (User::where("token_id", "=", $token_id)->where("token_key", "=", $token_key)->first() instanceof User);