app/Http/Requests/familiaresRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [ 
            'fecha_nac' => ['bail', 'nullable', 'date', 'before:today'],
            'apellido_nombres' => ['required', 'max:150'],
            'nro_doc' => ['required', 'numeric', 'digits_between:6,12']
        ];
    }
public function rules ( ) { return [ 'fecha_nac' => [ 'bail' , 'nullable' , 'date' , 'before:today' ] , 'apellido_nombres' => [ 'required' , 'max:150' ] , 'nro_doc' => [ 'required' , 'numeric' , 'digits_between:6,12' ] ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .