app/Http/Requests/recursoshumanos/empleado.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|max:80','apellido'=>'required|max:80',
           'fechanacimiento'=>'required','direccion'=>'required',
              'cdaorecinto'=>'required',
              'contacto'=>'required|max:10|min:10',
              'canton_id'=>'required','email'=>'required',
              'fechaingreso'=>'required',
              'sueldo'=>'required',
              'rrharea_id'=>'required',
              'rrhcargo_id'=>'required',
              'rrhprofesion_id'=>'required',
               'sexo'=>'required'
          ];
    }
public function rules ( ) { return [ 'nombre' => 'required|max:80' , 'apellido' => 'required|max:80' , 'fechanacimiento' => 'required' , 'direccion' => 'required' , 'cdaorecinto' => 'required' , 'contacto' => 'required|max:10|min:10' , 'canton_id' => 'required' , 'email' => 'required' , 'fechaingreso' => 'required' , 'sueldo' => 'required' , 'rrharea_id' => 'required' , 'rrhcargo_id' => 'required' , 'rrhprofesion_id' => 'required' , 'sexo' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
// esto retorna al formulario 