reconstruction of the project
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Resources\Attendance;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
|
||||
class StaffMonthResource extends JsonResource
|
||||
{
|
||||
public function toArray(Request $request): array
|
||||
{
|
||||
return [
|
||||
'filters' => $this['filters'] ?? [],
|
||||
'sundays' => $this['sundays'] ?? [],
|
||||
'no_school_days' => $this['noSchoolDays'] ?? [],
|
||||
'sections' => $this['sections'] ?? [],
|
||||
'admins' => $this['admins'] ?? [],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user