- Workspace 정책: 계정관리, 2단계인증, 감사로그, 데이터보존 - Workspace 요금: 4티어 비교, 기능비교, 예상비용, 인상히스토리 - Cloud API 요금: Gemini 모델 단가, 추가기능, Storage, 비용시뮬레이션 - 컨트롤러 3개 + 뷰 3개 + 라우트 그룹 추가
31 lines
891 B
PHP
31 lines
891 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\GoogleCloud;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Response;
|
|
use Illuminate\View\View;
|
|
use Symfony\Component\HttpFoundation\BinaryFileResponse;
|
|
|
|
class CloudApiPricingController extends Controller
|
|
{
|
|
public function index(Request $request): View|Response
|
|
{
|
|
if ($request->header('HX-Request')) {
|
|
return response('', 200)->header('HX-Redirect', route('google-cloud.cloud-api-pricing.index'));
|
|
}
|
|
|
|
return view('google-cloud.cloud-api-pricing.index');
|
|
}
|
|
|
|
public function download(): BinaryFileResponse
|
|
{
|
|
$path = public_path('downloads/google-cloud-api-pricing.pptx');
|
|
|
|
abort_unless(file_exists($path), 404, 'PPTX 파일을 찾을 수 없습니다.');
|
|
|
|
return response()->download($path, 'Google_Cloud_API_요금표.pptx');
|
|
}
|
|
}
|