22 lines
629 B
PHP
22 lines
629 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Staff;
|
|
|
|
use App\Http\Requests\ApiFormRequest;
|
|
|
|
class StaffUpdateRequest extends ApiFormRequest
|
|
{
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'firstname' => ['nullable', 'string', 'max:100'],
|
|
'lastname' => ['nullable', 'string', 'max:100'],
|
|
'email' => ['nullable', 'email', 'max:150'],
|
|
'phone' => ['nullable', 'string', 'max:20'],
|
|
'role_name' => ['nullable', 'string', 'max:100'],
|
|
'school_year' => ['nullable', 'string', 'max:20'],
|
|
'status' => ['nullable', 'string', 'max:40'],
|
|
];
|
|
}
|
|
}
|