| 12345678910111213141516171819 |
- <?php
- namespace App\Http\Controllers;
- use App\Http\Requests\LandingPageRegisterRequest;
- use App\Services\LandingPageService;
- use Illuminate\Http\JsonResponse;
- class LandingPageController extends Controller
- {
- public function __construct(protected LandingPageService $service) {}
- public function register(LandingPageRegisterRequest $request): JsonResponse
- {
- $this->service->registerUser($request->validated());
- return $this->successResponse(message: __('messages.landing.register_success'));
- }
- }
|