Back to Top

Getting started with Laravel

getting-started-with-laravel-basic

Laravel is a most popular framework in PHP which comes with a higher learning curve. It is difficult to get started with Laravel that might be the first feeling, it is more difficult to understand the operating mechanism and need in-depth study. Laravel provides a great documentation for features so you can easily understand it from its site.Let’s getting started with Laravel.

You have to spend a lot of time learning Laravel and get framework-independent PHP knowledge because Laravel uses a lot of new features of PHP.

In this article, I am going to explain basic about Laravel and how you can install laravel step by step.

What is Laravel?

Laravel is free, open-source PHP MVC framework mainly used to build the web application. You can develop a large web application with laravel which includes such as interacting with the database, saving data like e commerce websites and more.

Taylor Otwell developed Laravel and maintaining it from last six years of its release in 2012. Laravel was released first in February 2012. Also, Laravel is continuously updating from the years and latest version of laravel is 5.4

Basic features of Laravel

Laravel provides most of the common functionalities which web applications require. For example, Authentication, Routing, Data interaction, localization and caching etc. All of the common functionalities handled by laravel very easily. You don’t need to worry much about basic functionality which makes developers easy to build an application.

The latest version of Laravel is built with the Symfony, Symfony is a very powerful PHP web application framework which provides reusable PHP components and best to build PHP applications. Symfony is one of the reasons for making laravel well known framework.

Laravel also supports PHP dependency manager, Composer based installation which is a great thing because there are a lot of packages which you need to install and you can easily install it with the composer.

Laravel is uses Eloquent ORM(Object Relational Mapping).The Eloquent ORM provides a simple ActiveRecord implementation to work with your database in Laravel.

How to install Laravel?

Let’s start the Laravel Installation:

As Laravel supports Composer based installation, I recommended to go with composer based installation. For that, first of all, Go to Composer website and install composer. if you don’t have an idea about Composer, you can check my article about Composer and in that, I have explained the steps for setup as well.

Next thing, You have to do is, download the laravel installer using Composer and for that, you just need to execute the following command in the terminal or command prompt.

After that has been completed, you can go ahead and use laravel commands.Let’s say

After that you can see, laravel new application gets installed into your training folder. Next, go to training folder using

In that, you can go ahead and run following command

You can see your local laravel environment is setup. You can go to the browser and run the URL, you will see the laravel installation on your screen.

Note: If your laravel application is not working, you will need to add your composer bin directory in your $PATH for basically globally available on your machine.

Here is your laravel installation done. You are ready to go!!. Isn’t it easy?

Conclusion

This is pretty much all you need to know to get started with Laravel. Laravel is the well known framework nowadays. This article is about to give the basic understanding about laravel and make eases for you into getting more familiar with the laravel.

Hope you like this article. Don’t forget to share it with your friends.

Share:
Share on Facebook0Share on LinkedIn1Tweet about this on TwitterShare on Google+0Buffer this pageDigg thisShare on Reddit1

Leave a Reply

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

Most Popular Posts

How to use PHP Method Chaining?

Posted on 2 years ago

Bhumi

How to develop custom extension in Magento

Posted on 4 years ago

Bhumi

How to create Cron jobs in WordPress?

Posted on 4 years ago

Bhumi

What is Type Hinting in PHP5

Posted on 5 years ago

Bhumi

How to Get local time using EarthTool

Posted on 4 years ago

Bhumi

Facade implementation in Laravel

Updated 3 weeks ago

Bhumi

MySQL coalesce() function

Updated 17 years ago

Bhumi

How to use JavaScript Promise API?

Updated 17 years ago

Bhumi

What are Lambdas and Closures in PHP?

Updated 17 years ago

Bhumi

The Reader’s Poll – June 2015

Posted on 2 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 3 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 4 years ago

Bhumi