App\Http\Controllers\PaymentApiController::index PHP Method

index() public method

public index ( )
    public function index()
    {
        $payments = Payment::scope()->withTrashed()->with(['invoice'])->orderBy('created_at', 'desc');
        return $this->listResponse($payments);
    }