Laravel installation via composer

Last updated on Jul 12, 2021

Read 608 times

Laravel utilizes composer to manage dependencies. Before you install Laravel, make sure you have Composer installed on your PC. This chapter will walk you through the Laravel installation process.

Installing Laravel on your PC will require you to complete the procedures outlined below.

Step 1

Download composer from the following URL and install it on your machine.

Step 2

Once the Composer is installed, verify it by typing the Composer command at the command prompt, as seen in the screenshot below.

Step 3

Create a new directory for your new Laravel project somewhere on your system. Then, to install Laravel, navigate to the path where you created the new directory and execute the following command there.

composer create-project laravel/laravel  projectname  –-prefer-dist

We'll now concentrate on installing version 8.0 or another version. By entering the following line in Laravel version 8.0, you can install the entire framework.

composer create-project laravel/laravel test dev-develop

The command's output is displayed below.

The Laravel framework can be installed directly using the develop branch, which contains the most recent framework.

Step 4 

Laravel will be installed in the current directory using the command above. Run the following command to start the Laravel service.

php artisan serve

Step 5

After running the command above, you should see the screen below.

Step 6

Copy the URL highlighted in grey in the screenshot above and paste it into your browser. If you see the following screen, it means Laravel has been successfully installed.


Install the Laravel UI package

composer require laravel/ui:^3.2.0


Generate the auth Scaffolding

php artisan ui vue --auth

Install NPM

npm install


Share on



  • comment img

    Muhammad Umer

    Aug 05, 2021

    Thanks this article help me to solve my issue of how to create custom helper in laravel.


Leave a comment

Subscribe to see what we're thinking

Subscribe to get access to premium content or contact us if you have any questions.

Subscribe Now