This commit is contained in:
Mekan1206 committed 2026-05-02 12:55:20 +05:00
1 parent 005b428cf1
commit 6617c8bd27
4 files changed
+17 -17

No files matched your search

@@ -14,7 +14,9 @@ class OrderPaymentController extends Controller
public function index(): JsonResponse
{
return response()->rest(
PaymentType::all(['id', 'name'])
PaymentType::query()
->where('is_enabled', true)
->get(['id', 'name', 'is_enabled'])
->map(fn ($paymentType) => [
'id' => $paymentType->id,
'name' => $paymentType->name,