Make new laravel project

Here are the steps to create a new Laravel project:

Step 1: Install Composer

If you haven't already, install Composer, the PHP package manager, on your system. You can download it from the official Composer website: https://getcomposer.org/

Step 2: Create a new project

Open your terminal and 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.

Step 3: Change into the project directory

Once the project is created, change into the project directory:

cd project-name

Step 4: Install dependencies

Run the following command to install the dependencies required by Laravel:

composer install

Step 5: Configure the environment

Laravel comes with a default .env file that you can use to configure your environment. You can edit this file to set up your database, email, and other settings.

Step 6: Run the migrations

Run the following command to create the database tables:

php artisan migrate

Step 7: Start the development server

Run the following command to start the development server:

php artisan serve

This will start the server and you can access your project at http://localhost:8000

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

Additional steps

You may also want to: