install artisan code example
Example 1: laravel instal
composer global require laravel/installer
laravel new example-app
php artisan serve
Example 2: laravel installation
composer create-project --prefer-dist laravel/laravel:^7.0 blog
composer global require laravel/installer
laravel new example-app
php artisan serve
composer create-project --prefer-dist laravel/laravel:^7.0 blog