Your IP : 216.73.216.91


Current Path : /var/www/html/LLCF-APP/app/Http/Requests/
Upload File :
Current File : /var/www/html/LLCF-APP/app/Http/Requests/UpdateSpearRequest.php

<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class UpdateSpearRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'semis_code' => 'required|string|max:45',
            'school_name' => 'required|string|max:45',
            'hm_name' => 'required|string|max:45',
            'hm_contact_num' => ['required', 'string', 'max:45', 'regex:/^(\+92|92|0)3[0-9]{9}$/'],
            'hm_whatsapp_num' => ['required', 'string', 'max:45', 'regex:/^(\+92|92|0)3[0-9]{9}$/'],
            'emerg_num' => ['required', 'string', 'max:45', 'regex:/^(\+92|92|0)3[0-9]{9}$/'],
            'teacher_count' => ['required', 'string', 'max:45', 'regex:/^\d+$/'],
            'non_teacher_count' => ['required', 'string', 'max:45', 'regex:/^\d+$/'],
            'medium' => 'required|string|max:45',
            'stu_count' => ['required', 'string', 'max:45', 'regex:/^\d+$/'],
            'class1' => ['required', 'string', 'max:45', 'regex:/^\d+$/'],
            'class2' => ['required', 'string', 'max:45', 'regex:/^\d+$/'],
            'class3' => ['required', 'string', 'max:45', 'regex:/^\d+$/'],
            'class4' => ['required', 'string', 'max:45', 'regex:/^\d+$/'],
            'class5' => ['required', 'string', 'max:45', 'regex:/^\d+$/'],
        ];
    }
}