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.');
    }
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.');
    }
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.' ) ; }
Generate a new theme by given theme name.

@param string $name
Generate a new theme by given theme name .