Files
alrahma_sunday_school_api/app/Http/Requests/Staff/StaffIndexRequest.php
T
root 031e499819
API CI/CD / Validate (composer + pint) (push) Successful in 3m10s
API CI/CD / Test (PHPUnit) (push) Failing after 6m49s
API CI/CD / Build frontend assets (push) Successful in 1m3s
API CI/CD / Security audit (push) Failing after 1m0s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
fix apply the plan docs/alrahma_api_fix_plan_school_year_only_v7
2026-07-07 01:52:29 -04:00

25 lines
810 B
PHP

<?php
namespace App\Http\Requests\Staff;
use App\Http\Requests\ApiFormRequest;
class StaffIndexRequest extends ApiFormRequest
{
public function rules(): array
{
return [
'page' => ['nullable', 'integer', 'min:1'],
'per_page' => ['nullable', 'integer', 'min:1', 'max:100'],
'role' => ['nullable', 'string', 'max:100'],
'status' => ['nullable', 'string', 'max:40'],
'search' => ['nullable', 'string', 'max:150'],
'school_year' => ['nullable', 'string', 'max:20'],
'school_year_id' => ['prohibited'],
'semester' => ['nullable', 'string', 'max:20'],
'sort_by' => ['nullable', 'in:created_at,lastname,firstname'],
'sort_dir' => ['nullable', 'in:asc,desc'],
];
}
}