Exemplo n.º 1
0
 public function destroy($project_id, $file_id)
 {
     try {
         $file = $this->repository->skipPresenter()->find($file_id);
         $this->repository->delete($file->id);
         $this->storage->delete($file->getFileName());
     } catch (ValidatorException $e) {
         return ['error' => true, 'message' => $e->getMessageBag()];
     }
 }