コード例 #1
0
 public function destroy($id, $fileId)
 {
     $arquivos = self::show($id, $fileId);
     if (count($arquivos) == 0) {
         return ['error' => true, 'message' => 'Nao encontrado'];
     } else {
         return $this->service->destroyFile($arquivos);
     }
 }