Create a new laravel 6 project

To create a new Laravel 6 project, you can use the following command:

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

Replace project-name with the name you want to give your project.

This command will download the Laravel framework and create a new project with the default settings. You can then navigate into the project directory and start building your application.

Here are the steps in more detail:

  1. Open your terminal or command prompt.
  2. Run the following command to create a new Laravel project:
composer create-project --prefer-dist laravel/laravel project-name

Replace project-name with the name you want to give your project.

  1. Wait for the command to complete. This may take a few minutes, depending on your internet connection and the speed of your computer.
  2. Once the command has completed, navigate into the project directory:
cd project-name
  1. You can now start building your application. You can run the following command to start the development server:
php artisan serve

This will start the development server and you can access your application by navigating to http://localhost:8000 in your web browser.

That's it! You now have a new Laravel 6 project up and running.