🚀 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.