mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-30 09:53:58 +00:00
download all delivery orders
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user