Ejemplo n.º 1
0
 public function update($path, $contents, Config $config)
 {
     $this->cleanModel(['path' => $path])->makeDistributedName()->createDistributedPathDirs();
     $file = collect(parent::update($this->getModel()->path, $contents, $config));
     if (!$file->isEmpty()) {
         $this->model->savedFile = $file;
         $this->model->save();
         return $this->getModel();
     }
     return false;
 }