Skip to content

Commit 5de0373

Browse files
committed
add reg id
1 parent 9bb6c81 commit 5de0373

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

app/Http/Controllers/AuthController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function loginCallback()
5555
'email' => $socialLiteUser->getEmail(),
5656
'avatar' => $socialLiteUser->getAvatar(),
5757
'is_admin' => in_array('N9OY0K8OJVXR1P7L', $socialLiteUser->user['groups'], true),
58+
'attendee_id' => $regId,
5859
]);
5960

6061
$user->wallet->balance;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration {
8+
public function up(): void
9+
{
10+
Schema::table('users', function (Blueprint $table) {
11+
$table->string('attendee_id')->nullable()->after('id');
12+
});
13+
}
14+
};

0 commit comments

Comments
 (0)