전제 조건
Quick Start 애플리케이션을 생성하려면 개발 환경에 다음 소프트웨어가 설치되어 있어야 합니다.
종속성 다운로드 및 설치
다음 단계를 완료하여 Laravel 통합 종속성을 설치하고 Laravel 웹 애플리케이션 에 추가합니다.
1
MongoDB PHP 확장 설치
Laravel MongoDB requires the MongoDB PHP Extension to manage MongoDB connections and commands. Follow the Installing the MongoDB PHP Driver with PECL guide to install the MongoDB PHP Extension.
2
Laravel 설치
설치하는 Laravel 버전이 Laravel 통합 버전과 호환되는지 확인합니다. 호환되는 버전을 학습 보려면 호환성 페이지를 참조하세요.
다음 명령을 실행하여 Laravel을 설치합니다:
composer global require laravel/installer
설치가 완료되면 명령은 다음 메시지를 출력합니다.
Using version ^<version number> for laravel/installer
3
Laravel 애플리케이션 만들기
다음 명령을 실행하여 my-app
라는 새 Laravel 웹 애플리케이션을 생성합니다.
laravel new my-app
설치가 완료되면 명령은 다음 메시지를 출력합니다.
INFO Application ready in [my-app]. You can start your local development using: ➜ cd my-app ➜ php artisan serve New to Laravel? Check out our bootcamp and documentation. Build something amazing!
4
참고
문제가 발생하면 MongoDB Community 포럼 에서 도움을 요청하거나 페이지 오른쪽 또는 오른쪽 하단에 있는 Rate this page 탭을 사용하여 피드백을 제출하세요.