Example #1
0
 /**
  * Delete all uploaded files.
  * To assist with cleanup.
  */
 protected function deleteUploads()
 {
     $fileService = $this->app->make(\BookStack\Services\AttachmentService::class);
     foreach (\BookStack\Attachment::all() as $file) {
         $fileService->deleteFile($file);
     }
 }