more storage fixes

This commit is contained in:
Denis Duliçi
2023-08-24 15:44:10 +03:00
parent 0b45e4ed70
commit 02881945f8
12 changed files with 76 additions and 28 deletions

View File

@ -6,7 +6,6 @@ use App\Events\Banking\TransactionPrinting;
use App\Models\Banking\Transaction;
use App\Interfaces\Utility\TransactionNumber;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Storage;
trait Transactions
{
@ -162,7 +161,7 @@ trait Transactions
$file_name = $this->getTransactionFileName($transaction);
$pdf_path = Storage::path('app/temp/' . $file_name);
$pdf_path = get_storage_path('app/temp/' . $file_name);
// Save the PDF file into temp folder
$pdf->save($pdf_path);