xxxxxxxxxx
composer create-project --prefer-dist laravel/laravel:^7.0 blog.
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
// 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 laravelvuejstutorial --prefer-dist
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