0% found this document useful (0 votes)
53 views9 pages

How To Install Laravel Framework On Windows Macos and Linux

Install Laravel Framework on your windows machine, mac, or Linux with the composer for the application package manager.

Uploaded by

Aman Mehra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views9 pages

How To Install Laravel Framework On Windows Macos and Linux

Install Laravel Framework on your windows machine, mac, or Linux with the composer for the application package manager.

Uploaded by

Aman Mehra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

HOME BLOG CATEGORIES  TIPS & TRICKS CONTACT 

HOME LARAVEL HOW TO INSTALL LARAVEL 8 FRAMEWORK ON WINDOWS, MACOS AND LINUX?
RECENT POSTS

How to Install Laravel 8


Framework on Windows, macOS
How to Install Laravel 8 Framework on Windows, and Linux?

macOS and Linux? How to Add WooCommerce Cart


Icon in Menu with Item Count?
HOW TO LARAVEL

How to Secure Password Using


AMAN MEHRA MAY 17, 2021 LEAVE A COMMENT
bcrypt in PHP?

Tweet on Twitter Share on Facebook How to Make a DataTable in


ReactJS?

How to Inline Style in ReactJS?

CATEGORIES

How To

Laravel

PHP

ReactJS

Tips & Tricks

WooCommerce

WordPress
MOST VIEWED POSTS

WooCommerce Remove
Update Cart Button and
Make it Automatically
Update.
October 5, 2020

How to Change Price of


Specific Product and
Quantity in Cart?
October 14, 2020

How to Redirect to
Checkout After Add to
Cart?
October 16, 2020

How can I Prevent SQL


Injection in PHP?
October 7, 2020

If you are a beginner in the web development field and want to grow up with the Laravel framework?
Then you should definitely pick this most popular scalable framework. So, In this article, we will learn Upload Multiple Featured
how you can install the Laravel framework with the latest version and create your first web application Images in a Post OR Page
January 4, 2021
project in it.

What is a Laravel
FOLLOW US
Laravel is a framework based on PHP and you can build a web application with it. It gives you an Stay updated via social channels
expressive structure to start your project with a web application. It has an MVC (Model, View, Controller)
structure, and you can design your application amazingly to give you a better user experience.

No matter, you have experience in this web framework or not. If you are new to this Laravel framework
then there’s are wide collections of the tutorial, they will help you to gain knowledge in this framework.
If you have experienced in PHP then the Laravel framework grows with you and boosts your expertise
level to another next level. It will give you another experience to work in this web framework and you feel
lucky that you picked this very progressive and scalable web framework.

Let’s start with install the laravel framework and create the first project in it.

Install Laravel Web Framework

To install laravel on the machine, we need a Composer. Composer is an application package manager
and it is only for PHP programming language. It helps to manage dependencies libraries of PHP
applications. First, we will install this then we will install laravel.

You have to follow these steps to install Composer and Laravel framework on your machine with Xampp:

Download and Install Composer

Click on this link https://getcomposer.org/Composer-Setup.exe and you will get a executable file (.exe) of
compposer.

After successfully downloaded then you have to install it on your windows machine. While installing it
will ask you some settings so choose as per your requirement but there will be one step ask for PHP
installation path, so you must select your PHP path in the Xampp folder.

You can also install the Composer by curl command. Go to the home directory and run the following
commands in the terminal.
$ cd ~
$ curl -sS https://getcomposer.org/installer -o composer-setup.php

It will download the installer from the official website. Then now you can install composer globally on
your machine by this command.
$ sudo php composer-setup.php --install-dir=/usr/local/bin --
filename=composer

OK. After installation, you need to check that is it installed on my machine correctly or not? Then you
have to open your command prompt then run the below command. If it will show you the Composer logo
inside the command prompt and some other information then it means, you have correctly installed it.

See the below image for reference.

Install Laravel Framework with Composer

Create the directory where you want to install the laravel and enter in the directory then run the following
command in the command prompt.

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


The above command will install all required files and dependencies for the startup project. We used the
--prefer-dist flag to install the latest distribution from the server.

You can also install the specific version of laravel by telling in the command. See the below command

1 composer create-project laravel/laravel 7.2

It will take some time to download all the files. It depends on your internet speed. So, after a successful
installation, you will see a success message, and now it is ready to start your project.

Execute the below command in the same directory to run the laravel application project.

1 php artisan serve

The above command will start your project and it will give you a localhost default port address and you
can see the project in the browser by that link. The link will be like http://localhost:8000. You can change
it later by some setting.

You can change the default port by following command.


php artisan serve --port=8888

Install Laravel Framework with Laravel Installer

You can also install the Laravel Installer as a global dependency of the compoaser. Run the below
command one by one.

1 composer global require laravel/installer


2
3 laravel new example-app
4
5 cd example-app
6
7 php artisan serve

So, open this URL http://localhost:8000 in the browser and you will see welcome screen like below:

Now, you can start your own coding design.

Hope you understand how you can install laravel web framework on your machine.
If you have any questions, ask me in the comment section, I’ll respond to you as soon as possible.

COMPOSER INSTALL LARAVEL LARAVEL LARAVEL 8 LARAVEL COMPOSER LARAVEL INSTALLER


Tweet on Twitter Share on Facebook

YOU MAY ALSO LIKE

How to Add WooCommerce How to Secure Password Using How to Make a DataTable in
Cart Icon in Menu with Item bcrypt in PHP? ReactJS?
Count?

How to Inline Style in ReactJS? How to Install WordPress How to Install WordPress –
Theme (2021 Edition)? Beginners Guide?

ABOUT THE AUTHOR: AMAN MEHRA


Hey! I'm Aman Mehra and I'm a full-stack developer and have 5+ years of experience. I love
coding and find solutions to bugs.

LEAVE A REPLY

Your email address will not be published. Required fields are marked *
Comment

Name * Email * Website

Save my name, email, and website in this browser for the next time I comment.

POST COMMENT

ABOUT QUICK LINKS RECENT POSTS JOIN OUR NEWSLETTER

Your Blog Coach is the best site for Home How to Install Laravel 8 Framework on Name
finding the solution to any issue related Windows, macOS and Linux?
Blog
to coding and learn more cool stuff
How to Add WooCommerce Cart Icon
and tricks. WordPress Email
in Menu with Item Count?
WooCommerce
How to Secure Password Using bcrypt
Contact in PHP?
SUBSCRIBE
© 2020 Your Blog Coach Privacy Policy Terms and Conditions Sitemap

PDFmyURL.com - convert URLs, web pages or even full websites to PDF online. Easy API for developers!

You might also like