protected function generate($name)
    {
        $themePath = config('themes.path').'/'.$name;

        $this->laravel['files']->copyDirectory(__DIR__.'/stubs/theme', $themePath);

        Stub::createFromPath(__DIR__.'/stubs/json.stub', compact('name'))
            ->saveTo($themePath, 'theme.json')
        ;

        Stub::createFromPath(__DIR__.'/stubs/theme.stub')
            ->saveTo($themePath, 'theme.php')
        ;

        $this->info('Theme created successfully.');
    }