ok
Direktori : /home2/selectio/www/limpiar.in.net/app/Http/Controllers/Api/V2/Seller/ |
Current File : //home2/selectio/www/limpiar.in.net/app/Http/Controllers/Api/V2/Seller/PaymentController.php |
<?php namespace App\Http\Controllers\Api\V2\Seller; use App\Http\Controllers\Controller; use App\Http\Resources\V2\Seller\SellerPaymentResource; use Illuminate\Http\Request; use App\Models\Payment; class PaymentController extends Controller { // public function getHistory(){ $sellerId = auth()->user()->id; $payments = Payment::orderBy('created_at', 'desc')->where('seller_id',$sellerId)->latest()->paginate(10);; return SellerPaymentResource::collection($payments); } }