Exemplo n.º 1
0
 public function fire()
 {
     $app = $this->laravel;
     Asset::$autoMinifyDefault = $app->environment('production');
     $this->resourcesPath = base_path('resources');
     $this->assetsPath = base_path('resources/assets');
     $this->publishPath = public_path();
     $this->oldAssets = config('published_assets');
     if (empty($this->oldAssets)) {
         $this->oldAssets = [];
     }
     $this->compile();
     foreach ($this->rawDirs as $dir) {
         $this->rawFiles($dir);
     }
     $this->writeConfig($this->assets);
     foreach ($this->oldAssets as $asset) {
         @unlink($asset);
     }
 }