WIP
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user