composer create-project laravel/laravel example-app
cd example-app
php artisan serve
composer create-project --prefer-dist laravel/laravel:^7.0 blog
composer create-project --prefer-dist laravel/laravel blog
//here blog is you project name you can change this figure
//to whatever you want to make the name of your project
// Create project !! REMEBER TO CD INTO THE DIRECTORY YOU WANT HE PROJECT !!
composer create-project laravel/laravel your-project-name && cd your-project-name
// install composer and npm and generte artisan key
composer install && npm install && php artisan key:generate
// serve project
php artisan serve
just run this command(make sure to have Composer installed on your machine from: https://getcomposer.org/download/):
composer create-project laravel/laravel project-name
<!-- The curl option works with sail (Docker) -->
curl -s https://laravel.build/app-name | bash
cd app-name
sail up -d
<!-- OR -->
composer create-project --prefer-dist laravel/laravel app-name "8.*"
composer create-project laravel/laravel new_project
composer create-project laravel/laravel=4.1.27 your-project-name --prefer-dist
$ laravel new product-store