How to install Laravel

How to install Laravel.

What is  Laravel ?

Laravel is best for all type of website like Blog, WebApp, E-Commerce, Directory listing website or any CMS or MLM systems. Websites is basic requirement for all people whether they are a business man or a firm. everyone need website for business solutions there here lot’s of technologies are available for making website development easy.it is one of the best framework for website development now days. for starting learning laravel you have must knowledge of core PHP , oops concept for programming and also knowledge of MVC structure because this framework is purely mvc framework.

 

How to install laravel ?

Requirements for install laravel 5.7

  • PHP >= 7.1.3
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • Ctype PHP Extension
  • JSON PHP Extension

Install Laravel

Laravel use composer to manage dependencies so first you need to get composer. for install composer in window you can download exe file from http://getcomposer.com

once composer installed successfully run below command in CMD or Terminal to create empty project.

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

after successfully install it in to directory you have to run artisan command to start your project. run below command to start project.

php artisan serve

this command will start server on http://localhost:8000 and you can run this url in browser to see website.

Public Directory

for resources like css, js, images or other things you can place it into public directory and can use asset() function for include in template or view.

 

Config Directory

config directory contain number of files for different configuration like file system,app configuration, database configuration and many other configurations you can manage.  for Database configuration you can also use .env file.