xxxxxxxxxx
// Linux / macOS
$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
// Windows (using Composer-Setup.exe)
Download and run the Composer-Setup.exe from https://getcomposer.org/Composer-Setup.exe
xxxxxxxxxx
composer global require laravel/installer
laravel new example-app
php artisan serve
xxxxxxxxxx
# Laravel installer
composer global require laravel/installer
# install laravel project using this command
laravel new example-app
xxxxxxxxxx
composer create-project laravel/laravel contoh-app
cd contoh-app
php artisan serve
xxxxxxxxxx
composer create-project --prefer-dist "laravel/laravel:^10.0" note_manager
// here note_manager is the app name