protected function createFile($folder, $filename, $stubs, $defaultFolder = '')
    {
        if(!empty($folder = implode('/', $folder))) {
            $dir = app_path() . "{$defaultFolder}/{$folder}";
            $this->filesystem->createDirectory($dir);
            $this->filesystem->create("{$dir}/{$filename}.php", $stubs);
        } else {
            $this->filesystem->create(app_path() ."{$defaultFolder}/{$filename}.php", $stubs);
        }
    }