lib/Site.php
public function registerPostTypes()
    {
        $modelFiles = $this->getFiles('app/Models');

        foreach ($modelFiles as $modelFile) {
            $modelClass = static::getSiteNamespace().'\\Models\\'.$this->fileToClass($modelFile);
            if (!class_exists($modelClass)) {
                $modelClass = static::getParentNamespace().'\\Models\\'.$this->fileToClass($modelFile);
            }

            if (new $modelClass instanceof CustomPostType) {
                $this->registerPostType($modelClass);
            }
        }
    }
public function registerPostTypes()
    {
        $modelFiles = $this->getFiles('app/Models');

        foreach ($modelFiles as $modelFile) {
            $modelClass = static::getSiteNamespace().'\\Models\\'.$this->fileToClass($modelFile);
            if (!class_exists($modelClass)) {
                $modelClass = static::getParentNamespace().'\\Models\\'.$this->fileToClass($modelFile);
            }

            if (new $modelClass instanceof CustomPostType) {
                $this->registerPostType($modelClass);
            }
        }
    }
Register the post types in app/models automatically