public function getRules()
    {
        $action = $this->getActionReplaced();
        if (method_exists($this->formRequest, $action)) {
            return call_user_func([$this->formRequest, $action]);
        }

        if (method_exists($this->formRequest, 'rules')) {
            return call_user_func([$this->formRequest, 'rules']);
        }

        return [];
    }
public function getRules()
    {
        $action = $this->getActionReplaced();
        if (method_exists($this->formRequest, $action)) {
            return call_user_func([$this->formRequest, $action]);
        }

        if (method_exists($this->formRequest, 'rules')) {
            return call_user_func([$this->formRequest, 'rules']);
        }

        return [];
    }
public function getRules ( ) { $ action = $ this -> getActionReplaced ( ) ; if ( method_exists ( $ this -> formRequest , $ action ) ) { return call_user_func ( [ $ this -> formRequest , $ action ] ) ; } if ( method_exists ( $ this -> formRequest , 'rules' ) ) { return call_user_func ( [ $ this -> formRequest , 'rules' ] ) ; } return [ ] ; }
Get rules from ActionBasedFormRequest or FormRequest instance.

@return array
Get rules from ActionBasedFormRequest or FormRequest instance .