TbrBillingPreviewController.php 424 B

12345678910111213141516171819
  1. <?php
  2. namespace App\Http\Controllers;
  3. use App\Services\TbrBillingPreviewService;
  4. use Illuminate\Http\JsonResponse;
  5. class TbrBillingPreviewController extends Controller
  6. {
  7. public function __construct(
  8. protected TbrBillingPreviewService $service,
  9. ) {}
  10. public function index(): JsonResponse
  11. {
  12. $items = $this->service->getAll();
  13. return $this->successResponse(payload: $items);
  14. }
  15. }