This repository has been archived on 2025-12-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Caramel-CRM-Backup/app/Http/Controllers/PaymentTermsController.php
T

18 lines
395 B
PHP
Raw Normal View History

2025-10-20 08:57:51 +02:00
<?php
namespace App\Http\Controllers;
use App\Models\PaymentTerms;
use App\Support\ApiDataTransformer;
class PaymentTermsController extends Controller
{
public function index()
{
$paymentTerms = PaymentTerms::get();
return $paymentTerms->map(function ($paymentTerms) {
return ApiDataTransformer::snakeToCamel($paymentTerms->toArray());
});
}
}