how to create new project in laravel code example
Example 1: create laravel project
composer create-project laravel/laravel example-app
cd example-app
php artisan serve
Example 2: php artisan serve
The full command works like this:
php artisan serve --host=<host IP address> --port=<port to use>
php artisan serve --host=127.0.0.1 --port=8080
Example 3: how to create the new laravel project
composer create-project --prefer-dist laravel/laravel blog