add test batches

This commit is contained in:
root
2026-06-08 23:45:55 -04:00
parent c792b8be05
commit 8d4d610b82
1480 changed files with 22587 additions and 10762 deletions
@@ -124,12 +124,12 @@ class TeacherController extends BaseApiController
private function teacherPayload(?array $teacher, int $userId): ?array
{
if (! $teacher) {
if (!$teacher) {
$model = User::query()->find($userId);
$teacher = $model?->toArray();
}
if (! $teacher) {
if (!$teacher) {
return null;
}
@@ -142,6 +142,9 @@ class TeacherController extends BaseApiController
];
}
/**
* @return int|JsonResponse
*/
private function authenticatedUserIdOrUnauthorized(): int|JsonResponse
{
$userId = (int) (auth()->id() ?? 0);