How to create laravel project from scratch step by step


How To Create Laravel Project From Scratch

In order to create laravel project from scratch including authentication in a simple way, we have to follow the below guidelines.

  • We have to download and install the composer file that is important for the laravel application to start. You can download the composer file directly from this website. download the composer here.
  • After the successful installation of the composer, open the command prompt terminal and type composer. Now, you will see the composer screen.
  • Now, we have to create a fresh laravel project inside the root directory folder of our local server. In my case, the root directory folder is www (WAMP Server).

Also Read, How to run laravel on localhost without PHP artisan serve

Create laravel project using composer

Now, you can create the laravel project using the composer with the help of the create-project command as given below.

Open the command terminal and paste the above line of code inside the directory folder in the terminal. Here, blog is used as the folder name of the project. You can change as per your choice.

How To Create Laravel Project From Scratch

Now, follow the steps,
Step 1:

Download nodejs
Install nodejs in your pc.

Step 2:

Now, run the below commands one by one in the terminal wait for few seconds in every step

  • composer require laravel/ui
  • php artisan ui vue –auth
  • npm install
  • npm run dev
  • php artisan migrate
  • php artisan serve
How To Create Laravel Project From Scratch

The php artisan migrate command will automatically create a users table in your database for authentication.

Now, go to any browser you like and paste the URL: http://127.0.0.1:8000 that is generated after hitting the command php artisan serve.

Now, you can see the user interface of the laravel application and check the authentication manually by registering users with email, name, and password.

Conclusion:- I hope this tutorial will help you to understand the overview. If you have any doubt then please leave a comment below.


2 thoughts on “How to create laravel project from scratch step by step”

  1. I’m very happy to uncover this site. I want to to thank you for your time for this fantastic read!!
    I definitely savored every bit of it and i also
    have you saved as a favorite to look at new stuff in your site.

    Reply
  2. I’m amazed, I must say. Rarely do I encounter a blog that’s both educative and amusing,
    and let me tell you, you’ve hit the nail on the head.
    The problem is something which not enough men and women are speaking intelligently about.
    I am very happy that I found this during my search for
    something relating to this.

    Reply

Leave a Comment