Files
portal-api/app/Http/Controllers/Api/Client/Domain/DomainPricingController.php
T
baodev0 c377c7e195 feat: add domain registration form and email notifications
- Create a new Blade view for domain registration (`registrant-tochuc.blade.php`) to capture organization and manager details.
- Implement email templates for new domain orders for both admin (`domain-order-new.blade.php`) and customers (`domain-order-received.blade.php`).
- Add CSV exports for client and domain data.
- Introduce tests for customer mass assignment, password reset, login throttling, and permission gating.
- Ensure service renewals use current pricing and validate ownership for virtual machines.
- Validate mass assignment behavior in service model.
2026-08-22 17:30:55 +07:00

25 lines
615 B
PHP

<?php
namespace App\Http\Controllers\Api\Client\Domain;
use App\Http\Controllers\Controller;
use App\Models\DomainPricing;
use Illuminate\Http\JsonResponse;
class DomainPricingController extends Controller
{
/**
* GET /v1/domain-pricing
* Returns domain pricing list and addon services.
* Public endpoint (no auth required).
*/
public function index(): JsonResponse
{
return response()->json([
'error' => false,
'data' => DomainPricing::toResponseArray(),
'message' => 'Lấy bảng giá tên miền thành công.',
]);
}
}