Files
erahn-click/app/Http/Controllers/BillplzTransactionReviewController.php
T
Afiq Hamzah 694e1af651 Codebase update
- update jomweb/billplz package
- refactor controllers, views with means of to simplify data fetch and manipuation
2024-07-15 17:08:52 +08:00

20 lines
498 B
PHP

<?php
namespace App\Http\Controllers;
use App\Services\BillplzService;
use Carbon\Carbon;
use Illuminate\Http\Request;
class BillplzTransactionReviewController extends Controller
{
public function __invoke(Request $request, BillplzService $billplzService)
{
$date = $request->date ?? Carbon::now()->toDateString();
$billplzTransactionReview = $billplzService->getBillplzTransactionReview($date);
return response()->json($billplzTransactionReview, 200);
}
}