From 544afe73345c3260d8816efc7b5b4352178229cb Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Sun, 14 Jun 2026 01:35:39 +0700 Subject: [PATCH] feat: implement interactive product storefront with cart, filtering, and dark mode support --- app/Services/Master/CategoryService.php | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/app/Services/Master/CategoryService.php b/app/Services/Master/CategoryService.php index 4067ad2..fddd639 100644 --- a/app/Services/Master/CategoryService.php +++ b/app/Services/Master/CategoryService.php @@ -2,7 +2,6 @@ namespace App\Services\Master; -use App\Jobs\SendPushNotificationJob; use App\Models\Category; use Illuminate\Contracts\Pagination\LengthAwarePaginator; use Illuminate\Database\Eloquent\Builder; @@ -34,12 +33,7 @@ public function paginateForIndex(array $tableQuery): LengthAwarePaginator */ public function create(array $validated): void { - $category = Category::create($validated); - - SendPushNotificationJob::dispatch( - '📦 Kategori Baru', - "Kategori '{$category->name}' telah ditambahkan.", - ); + Category::create($validated); } /** @@ -48,22 +42,11 @@ public function create(array $validated): void public function update(Category $category, array $validated): void { $category->fill($validated)->save(); - - SendPushNotificationJob::dispatch( - '✏️ Kategori Diperbarui', - "Kategori '{$category->name}' telah diperbarui.", - ); } public function delete(Category $category): void { - $name = $category->name; $category->delete(); - - SendPushNotificationJob::dispatch( - '🗑️ Kategori Dihapus', - "Kategori '{$name}' telah dihapus.", - ); } private function applySorting(Builder $query, string $sort, string $direction): void