Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Execute the console command.
- */
- public function handle()
- {
- $name = strtolower($this->argument('name'));
- $current_theme = Config::get("theming.theme");
- $theme_path = site_path("themes/$current_theme");
- $this->changeCss($theme_path, $current_theme, $name);
- $this->changeJs($theme_path, $current_theme, $name);
- $this->searchAndReplace("$theme_path/webpack.mix.js", $current_theme, $name); // change webpack.mix.js
- $this->searchAndReplace(site_path('settings/theming.yaml'), $current_theme, $name); // change theming.yaml to new theme
- $this->changeThemeDir(site_path('themes'), $current_theme, $name);
- }
Add Comment
Please, Sign In to add comment