app/Http/Requests/empresasRequest.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_inicio_actividad' => ['bail', 'required', 'date', 'before_or_equal:today'],            
            'fecha_alta' => ['bail', 'required', 'date', 'before_or_equal:today'],            
            'seccional_id' => ['required'],
            'empresa_estado_id' => ['required'],
            'razon_social' => ['bail', 'required', 'max:150'],
            'cod_empresa' => ['required', 'numeric', 'digits_between:2,12'],
            'cuit' => ['required', 'numeric', 'digits:11'],
            'empresa_estado_id' => ['required', 'numeric']
        ];
    }
public function rules ( ) { return [ 'fecha_inicio_actividad' => [ 'bail' , 'required' , 'date' , 'before_or_equal:today' ] , 'fecha_alta' => [ 'bail' , 'required' , 'date' , 'before_or_equal:today' ] , 'seccional_id' => [ 'required' ] , 'empresa_estado_id' => [ 'required' ] , 'razon_social' => [ 'bail' , 'required' , 'max:150' ] , 'cod_empresa' => [ 'required' , 'numeric' , 'digits_between:2,12' ] , 'cuit' => [ 'required' , 'numeric' , 'digits:11' ] , 'empresa_estado_id' => [ 'required' , 'numeric' ] ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
//   'sexo' => ['required'], // 'email' => ["nullable", 'email'],,  // 'fecegreso' => ['required_with:egreso'],