26 lines
720 B
PHP
26 lines
720 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\AttendanceTracking;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class SaveAttendanceNotificationNoteRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'student_id' => ['required', 'integer', 'min:1'],
|
|
'code' => ['required', 'string'],
|
|
'note' => ['required', 'string'],
|
|
'incident_date' => ['nullable', 'date_format:Y-m-d'],
|
|
'to' => ['nullable', 'email'],
|
|
'subject' => ['nullable', 'string'],
|
|
'variant' => ['nullable', 'string'],
|
|
];
|
|
}
|
|
} |