feat: [claude-code] 활용방안 PPTX 다운로드 기능 추가

- UsagePlanController에 download 메서드 추가
- 라우트에 /usage-plan/download 추가
- 뷰 헤더에 PPTX 다운로드 버튼 추가
- 7장 슬라이드 PPTX 파일 배치
This commit is contained in:
김보곤
2026-03-02 13:24:43 +09:00
parent fce349392d
commit 31e9b5d605
4 changed files with 17 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\View\View;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
class UsagePlanController extends Controller
{
@@ -17,4 +18,12 @@ public function index(Request $request): View|Response
return view('claude-code.usage-plan.index');
}
public function download(): BinaryFileResponse
{
$path = public_path('downloads/sam-usage-plan.pptx');
abort_unless(file_exists($path), 404, 'PPTX 파일을 찾을 수 없습니다.');
return response()->download($path, 'SAM_활용방안.pptx');
}
}