π 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)
laravel new your-project-name , you will can create a new laravel project use by this command.