feat: update student import and graduation workflows

This commit is contained in:
2026-04-30 00:04:52 +07:00
parent 189b076ab0
commit ac22f8b7c8
51 changed files with 4547 additions and 1287 deletions
@@ -158,8 +158,12 @@ class StudentSelfServiceController extends Controller
protected function generateUniqueCode(): string
{
$characters = 'ABCDEFGHJKLMNPQRSTUVWXYZ23456789';
do {
$code = strtoupper(Str::random(8));
$code = collect(range(1, 4))
->map(fn () => $characters[random_int(0, strlen($characters) - 1)])
->implode('');
} while (Student::where('self_service_access_code', $code)->exists());
return $code;