mirror of
https://github.com/v2board/v2board.git
synced 2025-06-27 04:39:56 +08:00
update
This commit is contained in:
@ -17,7 +17,7 @@ class InviteController extends Controller
|
||||
}
|
||||
$inviteCode = new InviteCode();
|
||||
$inviteCode->user_id = $request->session()->get('id');
|
||||
$inviteCode->code = Helper::guid();
|
||||
$inviteCode->code = Helper::randomChar(8);
|
||||
return response([
|
||||
'data' => $inviteCode->save()
|
||||
]);
|
||||
|
Reference in New Issue
Block a user