how to start a new laravel project code example

Example 1: laravel new project

composer create-project --prefer-dist laravel/laravel:^7.0 blog

Example 2: laravel new project

composer create-project laravel/laravel example-app

cd example-app

php artisan serve

Example 3: laravel new project

composer create-project --prefer-dist laravel/laravel blog

Example 4: laravel new project

laravel new blog

Example 5: laravel new project

composer create-project laravel/laravel --prefer-dist laravel-socialite-login-facebook-example

Tags:

Php Example