1.6 Configuration

All of the configuration files for the Laravel framework are stored in the config directory.

Environment Configuration

It is often helpful to have different configuration values based on the environment where the application is running. For example, you may wish to use a different database driver locally than you do on your production server. To make this possible, Laravel utilizes the DotEnv PHP library by Vance Lucas. In a fresh Laravel installation, the root directory of your application will contain a .env.example file. If you install Laravel via Composer, this file will automatically be renamed to .env. Otherwise, you should rename the file manually.

1.4 Directory Structure

Before we actually start developing, we need to be familiar with our directory structure so that we dont have to keep searching for the files we want to customize.

1.3 Setting Up

Requirements

The Laravel framework has a few system requirements. You could use Laravel Homestead or manually satisfy the below requirements

  • PHP >= 5.6.4
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

    Installing Laravel

    First, we download the Laravel installer using Composer:

    composer global require "laravel/installer"
    

    Once installed, the laravel new command will create a fresh Laravel installation in the directory you specify. For instance, laravel new my-awesome-site will create a directory named nmy-awesome-site containing a fresh Laravel installation with all of Laravel’s dependencies already installed:

    laravel new my-awesome-site
    

    Alternatively, you may also install Laravel by issuing the Composer create-project command:

    composer create-project --prefer-dist laravel/laravel my-awesome-site
    

1.2 About Laravel

Laravel is an MVC Web Application Framework written in PHP.

1.1 Welcome to the Laravel Blog

I started to learn laravel on the recommendation of a friend and found it to be great. The loadlash style functions and ease of use is what makes this MVC frameworks one of the best MVC frameworks in the world. It has redesigned my outlook on php which i once thought as confusing and not worth my time.