Files
alrahma_sunday_school_api/app/Http/Resources/Classes/ClassAttendanceStudentResource.php
T
root 940afe9319
API CI/CD / Validate (composer + pint) (push) Successful in 2m7s
API CI/CD / Test (PHPUnit) (push) Failing after 2m23s
API CI/CD / Build frontend assets (push) Successful in 2m18s
API CI/CD / Security audit (push) Successful in 31s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
fix unit tests as well as missing code
2026-06-25 14:26:32 -04:00

21 lines
619 B
PHP

<?php
namespace App\Http\Resources\Classes;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class ClassAttendanceStudentResource extends JsonResource
{
public function toArray(Request $request): array
{
return [
'student_id' => $this->resource['student_id'] ?? null,
'school_id' => $this->resource['school_id'] ?? null,
'firstname' => $this->resource['firstname'] ?? null,
'lastname' => $this->resource['lastname'] ?? null,
'class_section_id' => $this->resource['class_section_id'] ?? null,
];
}
}