app/Http/Requests/StoreAlumno.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 [
            'nombre'        => 'required',
            'apellido_pat'  => 'required',
            'apellido_mat'  => 'required',
            'ci'            => 'required',
            'fecha_nac'     => 'required',
            'sexo'          => 'required',
            'email'         => 'required',
            'direccion'     => 'required',
            'telefono'      => 'required',
            'codrude'       => 'required',
            'tutor_id'      => 'required',
        ];
    }
public function rules ( ) { return [ 'nombre' => 'required' , 'apellido_pat' => 'required' , 'apellido_mat' => 'required' , 'ci' => 'required' , 'fecha_nac' => 'required' , 'sexo' => 'required' , 'email' => 'required' , 'direccion' => 'required' , 'telefono' => 'required' , 'codrude' => 'required' , 'tutor_id' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .