src/Database/Column.php
protected function assertColumn($method, $args)
    {
        if (array_key_exists($method, $this->types)) {
            return $this->ofType($this->types[$method]);
        }

        if (str_contains($method, ['default', 'Default'])) {
            return $this->defaults($args[0]);
        }

        if (str_contains($method, ['null', 'Null'])) {
            return $this->assertNullable(str_contains($method, 'not'));
        }

        throw new \Exception("The database table column assertion {$method} does not exist.");
    }
protected function assertColumn($method, $args)
    {
        if (array_key_exists($method, $this->types)) {
            return $this->ofType($this->types[$method]);
        }

        if (str_contains($method, ['default', 'Default'])) {
            return $this->defaults($args[0]);
        }

        if (str_contains($method, ['null', 'Null'])) {
            return $this->assertNullable(str_contains($method, 'not'));
        }

        throw new \Exception("The database table column assertion {$method} does not exist.");
    }
protected function assertColumn ( $ method , $ args ) { if ( array_key_exists ( $ method , $ this -> types ) ) { return $ this -> ofType ( $ this -> types [ $ method ] ) ; } if ( str_contains ( $ method , [ 'default' , 'Default' ] ) ) { return $ this -> defaults ( $ args [ 0 ] ) ; } if ( str_contains ( $ method , [ 'null' , 'Null' ] ) ) { return $ this -> assertNullable ( str_contains ( $ method , 'not' ) ) ; } throw new \ Exception ( "The database table column assertion {$method} does not exist." ) ; }
Call a column assertion method.

@param string $method
@param array $args
@return $this
Call a column assertion method .