How to install laravel framework

Laravel is a most powerful framework of PHP which is a purely depends on PHP artisan command. In this post I want to explain how to install and setup laravel on localhost environment. Laravel is created by Taylor Otwell and first beta version released in 2011, It is a fully followed the MVC structured and artisan command laravel is the best php framework comparison to CodeIgnitor,Yii2 etc.

Laravel framework Features

  1. Bundles provide a modular with bundled features already available for easy addition to applications. Laravel use Composer as a dependency manager to add framework.
  2. Object relation mapping is an advanced PHP implementation of the active record pattern, providing at the same time internal methods for enforcing constraints on the relationships between database objects.
  3. Laravel provide Query builder more direct database access alternative to the Eloquent Object Relational Mapping. Instead of requiring SQL queries to be written directly, Laravel’s query builder provides a set of classes and methods capable of building queries programmatically.
  4. Laravel provide blade templating in laravel all view file created with .blade.php extension . Blade also provides a set of its own control structures such as conditional statements and loops, which are internally mapped to their PHP counterparts.


  5. In laravel all controllers are rest full serving the HTTP request GET,POST etc.
  6. Laravel provides database migration and seeding command.

Lets start Laravel Installation

Follow the steps for installation process

  1. First start the server and open the your command prompt. If you have installed Git then open the git command prompt or open the window command prompt. If you have Linux user then open your terminal. laravel setup
  2. And use command composer create-project --prefer-dist laravel/laravel blog and enter.
  3. After that It will take few seconds and install all dependencies and laravel core files and one folder is created in your project root folder.laravel installation
  4. When Its complete process then use cd command for project directory after that use php artisan serve command. This command create virtual hosting for your project.
  5. Now open your browser and copy the generated laravel development server url which is define in below image
    laravel final
  6. Now your project laravel default welcome page display on screen same as screenshot which is given belowwelcome

Now Laravel is installed and now lets start work with laravel framework and enjoy. If you want to learn laravel from beginners to advance level then follow my laravel blog post  and learn from beginners to advance level.

Tags:

One Comment

Add a Comment

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