From 9aab5b8a0e0505c7ca8dba5c512f26706e70ad6d Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Fri, 1 Nov 2024 06:48:31 +0800 Subject: [PATCH 1/5] Laravel Vapor - Fix error 404 files --- .../forms/EditPaymentRecipientBankDetailsComponent.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/vue/components/bookings/forms/EditPaymentRecipientBankDetailsComponent.vue b/resources/assets/vue/components/bookings/forms/EditPaymentRecipientBankDetailsComponent.vue index 4a9b81b6..6ae0edc7 100644 --- a/resources/assets/vue/components/bookings/forms/EditPaymentRecipientBankDetailsComponent.vue +++ b/resources/assets/vue/components/bookings/forms/EditPaymentRecipientBankDetailsComponent.vue @@ -76,8 +76,8 @@
- - + +
Date: Fri, 1 Nov 2024 08:04:57 +0800 Subject: [PATCH 2/5] Laravel Vapor - Fix error 404 files --- resources/views/vendor/head.blade.php | 2 +- routes/web.php | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/resources/views/vendor/head.blade.php b/resources/views/vendor/head.blade.php index 22a97ead..721ff047 100644 --- a/resources/views/vendor/head.blade.php +++ b/resources/views/vendor/head.blade.php @@ -13,7 +13,7 @@ diff --git a/routes/web.php b/routes/web.php index 3e8f3d64..e206a675 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1246,3 +1246,13 @@ Route::get('/downloads', function () { return view('pages.downloads.index'); })->name('admin.download'); +Route::get('/site.webmanifest', function () { + $filePath = resource_path('assets/images/favicon/site.webmanifest'); + + if (!File::exists($filePath)) { + abort(404); + } + + $contents = File::get($filePath); + return response($contents, 200)->header('Content-Type', 'application/manifest+json'); +}); From 4884d7ecdde9c0673e01ed3cc4de62299a905037 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Mon, 4 Nov 2024 12:30:18 +0800 Subject: [PATCH 3/5] Laravel Vapor - Quick fix to download a broken link --- .../components/bookings/forms/PurchaseOrderFormComponent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/vue/components/bookings/forms/PurchaseOrderFormComponent.vue b/resources/assets/vue/components/bookings/forms/PurchaseOrderFormComponent.vue index f721851d..de4e496b 100644 --- a/resources/assets/vue/components/bookings/forms/PurchaseOrderFormComponent.vue +++ b/resources/assets/vue/components/bookings/forms/PurchaseOrderFormComponent.vue @@ -100,7 +100,7 @@
From 1282ab4e4505bdf4b008c1020b59c7433fdfaacc Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Tue, 5 Nov 2024 02:42:25 +0800 Subject: [PATCH 4/5] Laravel Vapor - Update custom logs retention period --- config/logging.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/logging.php b/config/logging.php index ef566d23..5781d006 100644 --- a/config/logging.php +++ b/config/logging.php @@ -145,7 +145,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => 31, + 'retention' => env('APP_ENV') === 'production' ? 90 : 6, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ], @@ -163,7 +163,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => 31, + 'retention' => env('APP_ENV') === 'production' ? 90 : 6, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ], @@ -181,7 +181,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => 31, + 'retention' => env('APP_ENV') === 'production' ? 90 : 6, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ], @@ -199,7 +199,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => 31, + 'retention' => env('APP_ENV') === 'production' ? 90 : 6, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ], From 6bb478b2e1967013b8dca70a0f5f232f4dfcf557 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Tue, 5 Nov 2024 03:22:51 +0800 Subject: [PATCH 5/5] Laravel Vapor - Update custom logs retention period --- config/logging.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/logging.php b/config/logging.php index 5781d006..eabe9a64 100644 --- a/config/logging.php +++ b/config/logging.php @@ -145,7 +145,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => env('APP_ENV') === 'production' ? 90 : 6, + 'retention' => env('APP_ENV') === 'production' ? 90 : 14, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ], @@ -163,7 +163,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => env('APP_ENV') === 'production' ? 90 : 6, + 'retention' => env('APP_ENV') === 'production' ? 90 : 14, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ], @@ -181,7 +181,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => env('APP_ENV') === 'production' ? 90 : 6, + 'retention' => env('APP_ENV') === 'production' ? 90 : 14, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ], @@ -199,7 +199,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => env('APP_ENV') === 'production' ? 90 : 6, + 'retention' => env('APP_ENV') === 'production' ? 90 : 14, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ],