# File Storage (Laravel) > filesystem 구성, 로컬 디스크, S3, 파일 업로드, 파일 작업, 가시성, 심볼릭 링크, 스트리밍 - 18 면접 질문 - Mid-Level - [면접 질문: Laravel](https://sharpskill.dev/ko/technologies/laravel/interview-questions.md) ## 1. 어떤 Laravel 설정 파일이 파일 스토리지 디스크를 정의합니까? **답변** config/filesystems.php 파일은 Laravel의 모든 스토리지 시스템 구성을 중앙 집중화합니다. 사용 가능한 디스크(local, public, s3), 각 driver, 그리고 루트 디렉터리, 기본 가시성, 클라우드 자격 증명 같은 특정 매개변수를 정의합니다. 이러한 중앙화 덕분에 비즈니스 로직 코드를 수정하지 않고도 서로 다른 스토리지 백엔드 간에 쉽게 전환할 수 있습니다. ## 2. Laravel Storage에서 콘텐츠를 파일에 직접 저장할 수 있는 메서드는 무엇입니까? **답변** Storage::put() 메서드는 경로와 콘텐츠(string 또는 resource)를 받아 파일을 생성하거나 덮어씁니다. 작업 성공 여부를 나타내는 boolean을 반환합니다. 이 메서드는 CSV 내보내기, JSON 리포트, API로 다운로드한 콘텐츠처럼 동적으로 생성된 콘텐츠를 저장하는 데 이상적입니다. UploadedFile을 사용하는 폼 업로드에는 putFile() 또는 putFileAs()가 더 적합합니다. ## 3. URL을 통해 공개적으로 접근 가능한 파일을 저장하는 Laravel 디스크는 무엇입니까? **답변** public 디스크는 파일을 storage/app/public에 저장하고 public/storage로의 심볼릭 링크를 사용하여 HTTP를 통해 접근 가능하게 만듭니다. php artisan storage:link 명령이 이 심볼릭 링크를 생성합니다. 이 디스크는 기본적으로 visibility가 public으로 구성되어 있어 /storage/avatars/user.jpg 같은 URL로 파일에 직접 접근할 수 있습니다. 아바타, 프로필 이미지, 공개 문서 같은 사용자 에셋에 적합합니다. ## 15개 추가 질문 이용 가능 - 스토리지 시스템에 파일이 존재하는지 확인하는 메서드는 무엇입니까? - public 디스크용 심볼릭 링크를 생성하는 Artisan 명령은 무엇입니까? 무료로 가입하기: https://sharpskill.dev/ko/login ## 기타 Laravel 면접 주제 - [PHP 기초](https://sharpskill.dev/ko/technologies/laravel/interview-questions/php-basics.md): 25개 질문, Junior - [PHP 객체지향 기초](https://sharpskill.dev/ko/technologies/laravel/interview-questions/php-oop-essentials.md): 20개 질문, Junior - [Composer & Autoloading](https://sharpskill.dev/ko/technologies/laravel/interview-questions/composer-autoloading.md): 18개 질문, Junior - [Laravel 기초](https://sharpskill.dev/ko/technologies/laravel/interview-questions/laravel-fundamentals.md): 20개 질문, Junior - [Laravel 라우팅](https://sharpskill.dev/ko/technologies/laravel/interview-questions/laravel-routing.md): 20개 질문, Junior - [Blade Templates](https://sharpskill.dev/ko/technologies/laravel/interview-questions/blade-templates.md): 18개 질문, Junior - [Request & Response](https://sharpskill.dev/ko/technologies/laravel/interview-questions/request-response.md): 20개 질문, Junior - [Eloquent ORM 기초](https://sharpskill.dev/ko/technologies/laravel/interview-questions/eloquent-orm-basics.md): 22개 질문, Junior - [Eloquent Relationships](https://sharpskill.dev/ko/technologies/laravel/interview-questions/eloquent-relationships.md): 25개 질문, Mid-Level - [Migrations & Schema Builder](https://sharpskill.dev/ko/technologies/laravel/interview-questions/database-migrations.md): 20개 질문, Mid-Level - [유효성 검사와 폼](https://sharpskill.dev/ko/technologies/laravel/interview-questions/validation-forms.md): 22개 질문, Mid-Level - [인증](https://sharpskill.dev/ko/technologies/laravel/interview-questions/authentication.md): 20개 질문, Mid-Level - [인가와 Policies](https://sharpskill.dev/ko/technologies/laravel/interview-questions/authorization-policies.md): 18개 질문, Mid-Level - [API Resources & Authentication](https://sharpskill.dev/ko/technologies/laravel/interview-questions/api-resources-authentication.md): 26개 질문, Mid-Level - [미들웨어](https://sharpskill.dev/ko/technologies/laravel/interview-questions/middleware.md): 18개 질문, Mid-Level - [Service Container & DI](https://sharpskill.dev/ko/technologies/laravel/interview-questions/service-container-di.md): 20개 질문, Mid-Level - [Queues & Jobs](https://sharpskill.dev/ko/technologies/laravel/interview-questions/queues-jobs.md): 22개 질문, Mid-Level - [Events & Listeners](https://sharpskill.dev/ko/technologies/laravel/interview-questions/events-listeners.md): 18개 질문, Mid-Level - [알림 및 메일](https://sharpskill.dev/ko/technologies/laravel/interview-questions/notifications-mail.md): 20개 질문, Mid-Level - [Testing & PHPUnit](https://sharpskill.dev/ko/technologies/laravel/interview-questions/testing-phpunit.md): 24개 질문, Mid-Level - [Caching](https://sharpskill.dev/ko/technologies/laravel/interview-questions/caching.md): 18개 질문, Mid-Level - [Livewire & Inertia](https://sharpskill.dev/ko/technologies/laravel/interview-questions/livewire-inertia.md): 20개 질문, Mid-Level - [Eloquent Advanced](https://sharpskill.dev/ko/technologies/laravel/interview-questions/eloquent-advanced.md): 24개 질문, Senior - [Repository Pattern](https://sharpskill.dev/ko/technologies/laravel/interview-questions/repository-pattern.md): 20개 질문, Senior - [Laravel 패키지](https://sharpskill.dev/ko/technologies/laravel/interview-questions/laravel-packages.md): 20개 질문, Senior - [Performance Optimization](https://sharpskill.dev/ko/technologies/laravel/interview-questions/performance-optimization.md): 22개 질문, Senior - [Security Best Practices](https://sharpskill.dev/ko/technologies/laravel/interview-questions/security-best-practices.md): 22개 질문, Senior - [Laravel Octane](https://sharpskill.dev/ko/technologies/laravel/interview-questions/laravel-octane.md): 18개 질문, Senior - [Laravel Distributed Systems](https://sharpskill.dev/ko/technologies/laravel/interview-questions/laravel-distributed-systems.md): 22개 질문, Senior - [Observability & Monitoring](https://sharpskill.dev/ko/technologies/laravel/interview-questions/observability-monitoring.md): 20개 질문, Senior - [Deployment & DevOps](https://sharpskill.dev/ko/technologies/laravel/interview-questions/deployment-devops.md): 20개 질문, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/ko/technologies/laravel/interview-questions/file-storage