DEV Community

Ramajayam K
Ramajayam K

Posted on

πŸš€ How to Create a New Laravel Project Quickly!

πŸš€ How to Create a New Laravel Project Quickly!

πŸ”Ή Method 1: Using Composer Create-Project

Command:
composer create-project --prefer-dist laravel/laravel LoginAuth "11.*"

Time Taken: ⏱️ Approximately 2–5 minutes
βœ… Directly installs the specific Laravel version you mention.
βœ… Good for complete control over the setup.

πŸ”Ή Method 2: Using Laravel Installer

Commands:
composer global require laravel/installer
laravel new LoginAuth

Time Taken: ⏱️ Approximately 30–60 seconds
βœ… Faster installation compared to create-project.
βœ… Best if you frequently create new Laravel projects.

πŸ”Ή Method 3: Using Docker (Laravel Sail)

Command:
curl -s "https://laravel.build/LoginAuth" | bash
cd LoginAuth
./vendor/bin/sail up

Time Taken: ⏱️ Around 1 minute
βœ… Ideal for containerized development.
βœ… Comes pre-configured with PHP, MySQL, Redis, and more.

Top comments (1)

Collapse
 
safi710 profile image
Shafi Ul

laravel new your-project-name , you will can create a new laravel project use by this command.