Merge branch 'fix-file-disk-pdf-issue' into 'master'

Solve issue of pdf store to local disk

See merge request mohit.panjvani/crater-web!996
This commit is contained in:
Mohit Panjwani
2021-09-14 13:15:25 +00:00

View File

@ -83,7 +83,7 @@ trait GeneratesPdfTrait
\Storage::disk('local')->put('temp/'.$collection_name.'/'.$this->id.'/temp.pdf', $pdf->output());
if ($deleteExistingFile) {
$this->clearMediaCollection($collection_name);
$this->clearMediaCollection($this->id);
}
$file_disk = FileDisk::whereSetAsDefault(true)->first();