public function storeFile($filePath, $fileExtension = '') { $this->deleteFile(); $this->setFileProperties(['hash' => hash_file('sha256', $filePath), 'ext' => $fileExtension]); $this->storage()->put($this->filePath(), file_get_contents($filePath)); }