Using the Laravel Installer is one of the fastest and cleanest ways to create new Laravel projects.
Follow these simple steps to get Laravel up and running on your machine.
Before starting, make sure:
Open your terminal and run:
composer global require laravel/installerThis installs the Laravel Installer globally so you can run the laravel command from anywhere.
vendor/bin Directory to Your PATHYou need to make sure your system can recognize the laravel command.
.bashrc, .zshrc, etc.)export PATH="$HOME/.composer/vendor/bin:$PATH"Or if using Composer v2 (typical path):
export PATH="$HOME/.config/composer/vendor/bin:$PATH"Then run:
source ~/.bashrc
# or
source ~/.zshrcC:\Users\YourName\AppData\Roaming\Composer\vendor\bin
Check if the Laravel installer is available:
laravel --versionYou should see something like:
Laravel Installer 5.x.x
Now you’re ready to create a Laravel project!
laravel new myappThis will:
✅ Create a new folder named myapp
✅ Install the latest stable Laravel version with all dependencies
– Optional: Install a specific Laravel version
laravel new myapp --version="11.1"
cd myapp
php artisan serveYou’ll see something like:
Starting Laravel development server: http://127.0.0.1:8000Now open http://127.0.0.1:8000 in your browser.
🎉 Your Laravel project is up and running!
You’ve successfully set up Laravel using the Laravel Installer.