From 7d17375a881cb55e73d8849624255737f0c1c439 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 5 Oct 2021 12:57:00 +0800 Subject: [PATCH] download all delivery orders --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 54bd6604..f9fbb3c1 100644 --- a/routes/web.php +++ b/routes/web.php @@ -73,7 +73,7 @@ Route::get('/test', function(){ try { $zip_file = 'cief_jun_to_september_delivery_orders.zip'; // Name of our archive to download $zip = new ZipArchive(); - if ($zip->open($zip_file, \ZipArchive::CREATE | \ZipArchive::OVERWRITE) === TRUE) { + if ($zip->open(storage_path().'/'.$zip_file, \ZipArchive::CREATE | \ZipArchive::OVERWRITE) === TRUE) { //whereMonth('created_at', 5)->whereYear('created_at', 2021)-> $bookings = \App\Models\Booking::where('status', \App\Classes\ValueObjects\Constants\ApprovalStatus::COMPLETED)->get();