芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/app/Models/VerifyUser.php
belongsTo(User::class, 'user_id'); } /** * Store Verify User * * @param int $userId * @return void */ public function createVerifyUser($userId) { self::firstOrCreate( ['user_id' => $userId], ['user_id' => $userId, 'token' => Str::random(40)] ); } /** * generateVerificationToken * * @param int $userId * @return void */ public static function generateVerificationToken(int $userId): void { self::firstOrCreate( ['user_id' => $userId], ['token' => Str::random(40)] ); } }