<?php

namespace App\Http\Requests;

use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;

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

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, ValidationRule|array<mixed>|string>
     */
    public function rules(): array
    {
  

        return [
            //
            'nomar'   => 'required|string|max:255',
            'nomfr'   => 'required|string|max:255',
            'matricule'   => 'required|string|max:255',
            'nni'   => 'required|string|max:255',
            'date_naissance'   => 'required|date',
            'lieu_naissance_ar'   => 'required|string|max:255',
            'lieu_naissance_fr'   => 'required|string|max:255',
            'discipline_origine'   => 'required|string|max:255',
            'contact'   => 'required|string|max:255',
            'photo'   => 'required|string|max:255',
            'date_recritement'   => 'required|date',
            'statut_id' => 'required|exists:statuts,id',
            'cycle_id' => 'required|exists:cycles,id'
           
        ];
    }
}
