Laravel is a free, open source and an MVC based web framework. Laravel is really easy to understand for beginners and It is very easy to get started with. It aids developers to make complex applications quickly and easily. Whatever there are numerous PHP frameworks in the market, Laravel is the most popular. It has experienced an exponential growth since its release in September 2011. And also nowadays Laravel is the best framework to use it.

That’s enough intro. Lets dig in to the Quick Laravel installation.

Requirements

The following are the basic requirement for laravel. In this course I will use the latest laravel version 7.26.1. The requirements may differ based on the laravel version of that you are going to install.

  • Composer
  • XAMPP or WAMPP
  • PHP >= 7.2.5
  • BCMath PHP Extension
  • Ctype PHP Extension
  • Fileinfo PHP extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

Don’t bother when you see all of these extensions. Just install php then all extensions will be installed automatically except for the composer and XAMPP. You can refer the composer official site to read how to install composer. And for XAMP refer this link.

Installation

Head into the directory you want to install your laravel project and point you cursor on an empty space in the directory then right click while holding shift key. From the options you will get Open PowerShell windows here Menu. Then click it. As a result windows powershell terminal navigating to that directory will be opened.

Then paste the following command in your terminal then click enter

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

replace easycodesolution with your own project name.

This command will take while. When it completes, a folder with the specified project name containing a fresh laravel project will be created inside the directory. Mine is easycodesolution.

Now, You can open the project using your favorite editor. I recommend Visual Studio Code. It is an excellent editor.

Now navigate to your newly created folder

 cd easycodesolution

Then run the artisan command to run your laravel application.

php artisan serve
php artisan serve. run laravel project

Boom! My laravel application up and serving on localhost port 8000

To browse your application first open XAMPP and start Apache server. Then navigate to http://127.0.0.1:8000/

laravel first run page

That’s all! Now you have successfully created laravel application.

The next step is setting up your database connectivity. Proceed to the next article that describes everything about database connectivity in laravel.

Categories: Web

0 Comments

Leave a Reply

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