xxxxxxxxxx
composer create-project --prefer-dist laravel/laravel="9." <project>
create new project Laravel
xxxxxxxxxx
composer create-project laravel/laravel example-app
xxxxxxxxxx
After Installing Composer
composer create-project laravel/laravel myproject
//for authentication using jetstream etc.
composer require laravel/jetstream
//set database in .env file
php artisan migrate
php artisan serve
xxxxxxxxxx
// 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
xxxxxxxxxx
// 3 ways to create project in laravel
composer create-project --prefer-dist laravel/laravel APIDemo
laravel new laravel-backend-api
composer global require laravel/installer
xxxxxxxxxx
composer create-project laravel/laravel example-app
This will install with the latest version of laravel
xxxxxxxxxx
//Using Composer
composer create-project laravel/laravel example-app
//Install laravel Global
composer global require laravel/installer
// If you have laravel global then
laravel new example-app