protected function copySkinDirectory()
{
$plugin = $this->attr('plugin');
$path = $plugin->getPath($this->attr('path'));
if (!$this->files->copyDirectory(__DIR__ . '/stubs/skin', $path)) {
throw new \Exception("Unable to create skin directory[{$path}]. please check permission.");
}
rename($path . '/info.stub', $path . '/info.php');
rename($path . '/views/index.blade.stub', $path . '/views/index.blade.php');
unlink($path . '/skin.stub');
}