Add initial Code
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?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());
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user