/** * @param string $theme */ private function publish($theme) { $this->info("Publishing Assets..."); $config = (require base_path('vendor/' . $theme . '/theme.php')); $theme = new Theme($config); foreach ($theme->publishes() as $from => $to) { $this->comment(sprintf("Publishing files from %s to %s", $from, $to)); $this->filesystem->mirror($from, $to); } }
public function boot(Router $router) { $this->app['view']->prependNamespace('flashtag', Theme::viewLocations()); if (!$this->app->routesAreCached()) { $router->group(['namespace' => 'Flashtag\\Front\\Http\\Controllers'], function ($router) { require __DIR__ . '/../../routes/web.php'; }); } }