/**
  * @param File $file
  */
 public function saveFile(FileContract $file)
 {
     return $file->save();
 }
 /**
  * @param File $file
  *
  * @return string
  */
 protected function createFilePath(File $file)
 {
     return $this->directory . '/' . $file->getFilePath();
 }
 /**
  * @param FileContract $file
  *
  * @return array
  */
 public function transform(FileContract $file)
 {
     return ['id' => $file->getId(), 'name' => $file->getName(), 'mime_type' => $file->getMimeType(), 'byte_size' => $file->getByteSize(), 'data' => $file->getData(), 'saved_at' => $file->getSavedAt()];
 }