Linux command
laravel 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Create new Laravel project
laravel new [project-name]
Create project with specific starter kit
laravel new [project-name] --jet
Create project with Breeze
laravel new [project-name] --breeze
Create without Git initialization
laravel new [project-name] --no-git
说明
laravel is the Laravel installer CLI for creating new Laravel PHP framework applications. Provides scaffolding options for starter kits like Jetstream and Breeze. Alternative to using Composer create-project.
参数
- new _name_
- Create a new Laravel application.
- --jet
- Install with Laravel Jetstream.
- --breeze
- Install with Laravel Breeze.
- --pest
- Use Pest for testing.
- --no-git
- Skip Git initialization.
- --force
- Overwrite existing directory.
FAQ
What is the laravel command used for?
laravel is the Laravel installer CLI for creating new Laravel PHP framework applications. Provides scaffolding options for starter kits like Jetstream and Breeze. Alternative to using Composer create-project.
How do I run a basic laravel example?
Run `laravel new [project-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does new _name_ do in laravel?
Create a new Laravel application.