D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
truka.dentostock.com
/
app
/
Http
/
Controllers
/
API
/
Filename :
PaymentGatewayController.php
back
Copy
<?php namespace App\Http\Controllers\API; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\PaymentGateway; use App\Http\Resources\PaymentGatewayResource; class PaymentGatewayController extends Controller { public function getList(Request $request) { $gateways = PaymentGateway::where('status',1); $gateways = $gateways->where('type','!=', 'cash' )->orderBy('title','asc')->paginate(10); $items = PaymentGatewayResource::collection($gateways); $response = [ 'pagination' => json_pagination_response($items), 'data' => $items, ]; return json_custom_response($response); } }