From 290af99a98c23bf2363d46a1b589f23b0108720d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Fri, 30 Jan 2026 18:07:45 +0900 Subject: [PATCH] =?UTF-8?q?feat(MNG):=20FCM=20=EC=B1=84=EB=84=90=EB=AA=85?= =?UTF-8?q?=20=EB=8F=99=EA=B8=B0=ED=99=94=20=EB=B0=8F=20config=20=EC=9D=BC?= =?UTF-8?q?=EC=9B=90=ED=99=94=20(7=EC=B1=84=EB=84=90)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - push_urgent → push_vendor_register (거래처등록) - push_payment → push_approval_request (결재요청) - push_income 신규 추가 (입금) - config/fcm.php 전체 7개 채널 등록 - FcmController validation 및 Blade select 옵션 반영 Co-Authored-By: Claude Opus 4.5 --- app/Http/Controllers/FcmController.php | 2 +- config/fcm.php | 9 +++++++-- resources/views/fcm/send.blade.php | 5 +++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/FcmController.php b/app/Http/Controllers/FcmController.php index 6b042add..851a7e32 100644 --- a/app/Http/Controllers/FcmController.php +++ b/app/Http/Controllers/FcmController.php @@ -99,7 +99,7 @@ public function sendPush(Request $request): View 'tenant_id' => 'nullable|integer|exists:tenants,id', 'user_id' => 'nullable|integer', 'platform' => 'nullable|string|in:android,ios,web', - 'channel_id' => 'nullable|string|in:push_default,push_urgent,push_payment,push_sales_order,push_purchase_order,push_contract', + 'channel_id' => 'nullable|string|in:push_default,push_vendor_register,push_approval_request,push_income,push_sales_order,push_purchase_order,push_contract', 'type' => 'nullable|string|max:50', 'url' => 'nullable|string|max:500', ]); diff --git a/config/fcm.php b/config/fcm.php index 4756e2dd..2886ab2c 100644 --- a/config/fcm.php +++ b/config/fcm.php @@ -38,8 +38,13 @@ | */ 'channels' => [ - 'default' => 'push_default', - 'urgent' => 'push_urgent', + 'default' => 'push_default', + 'vendor_register' => 'push_vendor_register', + 'approval_request' => 'push_approval_request', + 'income' => 'push_income', + 'sales_order' => 'push_sales_order', + 'purchase_order' => 'push_purchase_order', + 'contract' => 'push_contract', ], /* diff --git a/resources/views/fcm/send.blade.php b/resources/views/fcm/send.blade.php index ae423b91..df7dc906 100644 --- a/resources/views/fcm/send.blade.php +++ b/resources/views/fcm/send.blade.php @@ -99,8 +99,9 @@ class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none foc