public static function getRules()
    {
        $instance = static::getInstance();

        $fillables = $instance->getFillables();

        $structure = $instance->getStructure();

        $rules = $instance->rules;

        if(!$rules){
            $rules = [];

            foreach($structure as $key => $column){
                $rules[$key] = '';
            }
        }

        return $rules;
    }
public static function getRules()
    {
        $instance = static::getInstance();

        $fillables = $instance->getFillables();

        $structure = $instance->getStructure();

        $rules = $instance->rules;

        if(!$rules){
            $rules = [];

            foreach($structure as $key => $column){
                $rules[$key] = '';
            }
        }

        return $rules;
    }
public static function getRules ( ) { $ instance = static :: getInstance ( ) ; $ fillables = $ instance -> getFillables ( ) ; $ structure = $ instance -> getStructure ( ) ; $ rules = $ instance -> rules ; if ( ! $ rules ) { $ rules = [ ] ; foreach ( $ structure as $ key => $ column ) { $ rules [ $ key ] = '' ; } } return $ rules ; }
Get Rules from Model
Get Rules from Model