<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class StudentRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
     */
    public function rules(): array
    {
        return [
            'idParent' => 'required|integer',
            'idYear' => 'required|integer',
            'nom' => 'required|string',
            'prenom' => 'required|string',
            'sexe' => 'required|string',
            'dateNais' => 'required|string',
            'lieuNais' => 'required|string',
            'nationalite' => 'required|string',
            'residence' => 'required|string',
            'type' => 'required|string',
            'NomPere' => 'required|string',
            'prenomPere' => 'required|string',
            'profPere' => 'required|string',
            'NomMere' => 'required|string',
            'prenomMere' => 'required|string',
            'profMere' => 'required|string',
        ];
    }
}
